pub struct RayHit {
pub distance: f32,
pub position: Vec3,
pub normal: Vec3,
pub uv: [f32; 2],
pub triangle_index: usize,
}Expand description
Result of a ray-mesh intersection test.
Fields§
§distance: f32§position: Vec3§normal: Vec3§uv: [f32; 2]§triangle_index: usizeTrait 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