pub struct RayHit {
pub face_id: u64,
pub distance: f64,
pub position: Vec3,
pub normal: Vec3,
}Expand description
Result of a RayCast query: a single triangle-ray intersection.
Fields§
§face_id: u64Triangle index that was hit.
distance: f64Parametric distance along the ray segment in [0, 1]. 0 = origin, 1 = endpoint.
position: Vec33D position of the hit point.
normal: Vec3Geometric face normal at the hit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RayHit
impl RefUnwindSafe for RayHit
impl Send for RayHit
impl Sync for RayHit
impl Unpin for RayHit
impl UnsafeUnpin for RayHit
impl UnwindSafe for RayHit
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