pub struct RayHit {
pub distance: f64,
pub point: Vec3,
pub normal: Vec3,
}Expand description
A ray/shape intersection.
Fields§
§distance: f64Distance along the ray to the first intersection.
point: Vec3Intersection point in world coordinates.
normal: Vec3Outward surface normal at the intersection, in world coordinates.
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