pub struct RaycastHit {
pub point: Vec2,
pub distance: f32,
pub normal: Vec2,
}Expand description
Result of a ray cast.
Fields§
§point: Vec2Point of intersection.
distance: f32Distance from ray origin.
normal: Vec2Surface normal at the hit point.
Trait Implementations§
Source§impl Clone for RaycastHit
impl Clone for RaycastHit
Source§fn clone(&self) -> RaycastHit
fn clone(&self) -> RaycastHit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RaycastHit
Auto Trait Implementations§
impl Freeze for RaycastHit
impl RefUnwindSafe for RaycastHit
impl Send for RaycastHit
impl Sync for RaycastHit
impl Unpin for RaycastHit
impl UnsafeUnpin for RaycastHit
impl UnwindSafe for RaycastHit
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