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