pub struct RayHit {
pub point: [f32; 3],
pub normal: [f32; 3],
pub distance: f32,
}Expand description
One raycast hit: the surface point, its outward normal, and the distance from the ray origin.
Fields§
§point: [f32; 3]World-space surface point the ray hit.
normal: [f32; 3]Unit-length normal.
distance: f32Distance from the ray origin to 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