pub struct RayResult {
pub shape_id: ShapeId,
pub point: Vec2,
pub normal: Vec2,
pub fraction: f32,
pub hit: bool,
}Expand description
Result of a closest ray cast
Fields§
§shape_id: ShapeId§point: Vec2§normal: Vec2§fraction: f32§hit: boolTrait Implementations§
Source§impl From<b2RayResult> for RayResult
impl From<b2RayResult> for RayResult
Source§fn from(r: b2RayResult) -> Self
fn from(r: b2RayResult) -> Self
Converts to this type from the input type.
impl Copy for RayResult
Auto Trait Implementations§
impl Freeze for RayResult
impl RefUnwindSafe for RayResult
impl Send for RayResult
impl Sync for RayResult
impl Unpin for RayResult
impl UnwindSafe for RayResult
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)