pub struct RayHit3 {
pub t: Scalar,
pub triangle: usize,
pub barycentric: [Scalar; 3],
pub side: FaceSide,
pub point: Point3,
}Expand description
One nearest-hit record.
Fields§
§t: ScalarParametric distance along the supplied (possibly unnormalised) direction.
triangle: usizeIndex of the hit triangle in the source mesh.
barycentric: [Scalar; 3]Barycentric coordinates (u, v, w) with w = 1 - u - v, ordered to
match the triangle’s stored corner order.
side: FaceSideSide the ray origin was on.
point: Point3Hit position reconstructed as origin + direction * t.
Trait Implementations§
impl Copy for RayHit3
impl StructuralPartialEq for RayHit3
Auto Trait Implementations§
impl Freeze for RayHit3
impl RefUnwindSafe for RayHit3
impl Send for RayHit3
impl Sync for RayHit3
impl Unpin for RayHit3
impl UnwindSafe for RayHit3
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