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