pub enum FaceSide {
Front,
Back,
Coplanar,
}Expand description
Which side of a triangle the ray arrived from.
Determined by the certified orientation of the ray origin against the triangle plane, not by the sign of a floating-point dot product, so a grazing ray does not flip sides on rounding.
Variants§
Front
The origin lies on the positive side of the triangle’s winding normal.
Back
The origin lies on the negative side of the triangle’s winding normal.
Coplanar
The origin lies exactly in the triangle’s plane.
Trait Implementations§
impl Copy for FaceSide
impl Eq for FaceSide
impl StructuralPartialEq for FaceSide
Auto Trait Implementations§
impl Freeze for FaceSide
impl RefUnwindSafe for FaceSide
impl Send for FaceSide
impl Sync for FaceSide
impl Unpin for FaceSide
impl UnwindSafe for FaceSide
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