pub struct RayHit3 {
pub distance: f32,
pub point: Vec3,
pub normal: Vec3,
}Expand description
Contact on a 3D box. The normal points outward; strict inside starts have zero normal.
Fields§
§distance: f32World-unit distance along the normalized ray.
point: Vec3World-space contact point.
normal: Vec3Outward box-face normal, or zero for a strict inside start.
Trait Implementations§
impl Copy for RayHit3
impl StructuralPartialEq for RayHit3
Auto Trait Implementations§
impl Freeze for RayHit3
impl RefUnwindSafe for RayHit3
impl Send for RayHit3
impl Sync for RayHit3
impl Unpin for RayHit3
impl UnsafeUnpin for RayHit3
impl UnwindSafe for RayHit3
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