pub struct Hit {
pub t: f64,
pub position: Vector3D,
pub normal: Vector3D,
/* private fields */
}Expand description
The result of a ray-object intersection.
Fields§
§t: f64The ray parameter at the hit point.
position: Vector3DThe world-space hit position.
normal: Vector3DThe outward unit normal at the hit point.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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