Struct ProximityComponent
pub struct ProximityComponent {
pub witness: MeshDistance,
pub triangles_a: Vec<usize>,
pub triangles_b: Vec<usize>,
}Expand description
A region where two meshes approach within a threshold.
Fields§
§witness: MeshDistanceThe closest approach within this component.
triangles_a: Vec<usize>First-mesh triangles participating, ascending.
triangles_b: Vec<usize>Second-mesh triangles participating, ascending.
Trait Implementations§
§impl Clone for ProximityComponent
impl Clone for ProximityComponent
§fn clone(&self) -> ProximityComponent
fn clone(&self) -> ProximityComponent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ProximityComponent
impl Debug for ProximityComponent
§impl PartialEq for ProximityComponent
impl PartialEq for ProximityComponent
impl StructuralPartialEq for ProximityComponent
Auto Trait Implementations§
impl Freeze for ProximityComponent
impl RefUnwindSafe for ProximityComponent
impl Send for ProximityComponent
impl Sync for ProximityComponent
impl Unpin for ProximityComponent
impl UnwindSafe for ProximityComponent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more