pub struct RayHit {
pub u: f64,
pub v: f64,
pub t: f64,
pub point: Point3,
}Expand description
Where a ray meets a surface.
Fields§
§u: f64The surface’s u there.
v: f64The surface’s v there.
t: f64The distance along the ray’s unit direction.
point: Point3The point.
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