pub enum DistanceKind {
Mesh = 0,
Estimate = 1,
}Expand description
How NarrowResult::distance was obtained. Discriminants match the public
ABI and the TS ClashDistanceKind (Mesh = 0, Estimate = 1).
Mesh is a value measured on the triangle meshes; Estimate is read off the
two element AABBs (the smallest overlapping box dimension) because no
crossing-triangle vertex of either mesh lies strictly inside the other solid.
The two are not interchangeable, so every result carries its provenance.
Variants§
Trait Implementations§
Source§impl Clone for DistanceKind
impl Clone for DistanceKind
Source§fn clone(&self) -> DistanceKind
fn clone(&self) -> DistanceKind
Returns a duplicate 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 moreSource§impl Debug for DistanceKind
impl Debug for DistanceKind
Source§impl PartialEq for DistanceKind
impl PartialEq for DistanceKind
impl Copy for DistanceKind
impl StructuralPartialEq for DistanceKind
Auto Trait Implementations§
impl Freeze for DistanceKind
impl RefUnwindSafe for DistanceKind
impl Send for DistanceKind
impl Sync for DistanceKind
impl Unpin for DistanceKind
impl UnwindSafe for DistanceKind
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