pub enum FaceClass {
Top,
Side,
Bottom,
Any,
}Expand description
Which faces of a body a FaceDistanceRequest measures to, by the
direction of their outward normal.
A face is top when its outward normal points upwards within 45° of
vertical (its z component is at least √½), bottom when it points
downwards within 45°, and a side face otherwise. Any takes every
face.
Variants§
Implementations§
Trait Implementations§
impl Copy for FaceClass
impl Eq for FaceClass
Source§impl Ord for FaceClass
impl Ord for FaceClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for FaceClass
impl PartialOrd for FaceClass
impl StructuralPartialEq for FaceClass
Auto Trait Implementations§
impl Freeze for FaceClass
impl RefUnwindSafe for FaceClass
impl Send for FaceClass
impl Sync for FaceClass
impl Unpin for FaceClass
impl UnsafeUnpin for FaceClass
impl UnwindSafe for FaceClass
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