pub struct Hit {
pub triangle: usize,
pub t: f64,
pub point: Point3,
}Expand description
Where a ray first meets a mesh.
Fields§
§triangle: usizeIndex of the triangle struck.
t: f64Ray parameter of the hit: origin + direction * t.
point: Point3The hit position.
Trait Implementations§
impl Copy for Hit
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 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