#[repr(C)]pub struct b2RayResult {
pub shapeId: b2ShapeId,
pub point: b2Vec2,
pub normal: b2Vec2,
pub fraction: f32,
pub nodeVisits: c_int,
pub leafVisits: c_int,
pub hit: bool,
}Expand description
Result from b2World_RayCastClosest If there is initial overlap the fraction and normal will be zero while the point is an arbitrary point in the overlap region. @ingroup world
Fields§
§shapeId: b2ShapeId§point: b2Vec2§normal: b2Vec2§fraction: f32§nodeVisits: c_int§leafVisits: c_int§hit: boolTrait Implementations§
Source§impl Clone for b2RayResult
impl Clone for b2RayResult
Source§fn clone(&self) -> b2RayResult
fn clone(&self) -> b2RayResult
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for b2RayResult
impl Debug for b2RayResult
impl Copy for b2RayResult
Auto Trait Implementations§
impl Freeze for b2RayResult
impl RefUnwindSafe for b2RayResult
impl Send for b2RayResult
impl Sync for b2RayResult
impl Unpin for b2RayResult
impl UnwindSafe for b2RayResult
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)