#[repr(C)]pub struct b2CastOutput {
pub normal: b2Vec2,
pub point: b2Vec2,
pub fraction: f32,
pub iterations: c_int,
pub hit: bool,
}Expand description
Low level ray cast or shape-cast output data. Returns a zero fraction and normal in the case of initial overlap.
Fields§
§normal: b2Vec2The surface normal at the hit point
point: b2Vec2The surface hit point
fraction: f32The fraction of the input translation at collision
iterations: c_intThe number of iterations used
hit: boolDid the cast hit?
Trait Implementations§
Source§impl Clone for b2CastOutput
impl Clone for b2CastOutput
Source§fn clone(&self) -> b2CastOutput
fn clone(&self) -> b2CastOutput
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 b2CastOutput
impl Debug for b2CastOutput
impl Copy for b2CastOutput
Auto Trait Implementations§
impl Freeze for b2CastOutput
impl RefUnwindSafe for b2CastOutput
impl Send for b2CastOutput
impl Sync for b2CastOutput
impl Unpin for b2CastOutput
impl UnwindSafe for b2CastOutput
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)