#[repr(C)]pub struct b2TOIOutput {
pub state: b2TOIState,
pub point: b2Vec2,
pub normal: b2Vec2,
pub fraction: f32,
}Expand description
Time of impact output
Fields§
§state: b2TOIStateThe type of result
point: b2Vec2The hit point
normal: b2Vec2The hit normal
fraction: f32The sweep time of the collision
Trait Implementations§
Source§impl Clone for b2TOIOutput
impl Clone for b2TOIOutput
Source§fn clone(&self) -> b2TOIOutput
fn clone(&self) -> b2TOIOutput
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 b2TOIOutput
impl Debug for b2TOIOutput
impl Copy for b2TOIOutput
Auto Trait Implementations§
impl Freeze for b2TOIOutput
impl RefUnwindSafe for b2TOIOutput
impl Send for b2TOIOutput
impl Sync for b2TOIOutput
impl Unpin for b2TOIOutput
impl UnwindSafe for b2TOIOutput
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)