pub struct AabbFace {
pub t: f32,
pub axis: usize,
pub sign: f32,
}Expand description
The face a ray enters a world-space AABB through: the entry distance t,
the axis index of the face’s plane (0 = X, 1 = Y, 2 = Z), and the outward
sign of the face normal along that axis (+1.0 / -1.0). The normal is
sign on axis and zero elsewhere – an AABB face normal, not a surface
normal of the geometry inside the box.
Fields§
§t: f32Ray parameter at the hit, in dir units from origin.
axis: usizeWhich axis the hit face is perpendicular to: 0 = X, 1 = Y, 2 = Z.
sign: f32Which side of that axis was hit: -1 or +1.
Trait Implementations§
impl Copy for AabbFace
impl StructuralPartialEq for AabbFace
Auto Trait Implementations§
impl Freeze for AabbFace
impl RefUnwindSafe for AabbFace
impl Send for AabbFace
impl Sync for AabbFace
impl Unpin for AabbFace
impl UnsafeUnpin for AabbFace
impl UnwindSafe for AabbFace
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