#[repr(C)]pub struct b2DistanceOutput {
pub pointA: b2Vec2,
pub pointB: b2Vec2,
pub normal: b2Vec2,
pub distance: f32,
pub iterations: c_int,
pub simplexCount: c_int,
}Expand description
Output for b2ShapeDistance
Fields§
§pointA: b2Vec2< Closest point on shapeA
pointB: b2Vec2< Closest point on shapeB
normal: b2Vec2< Normal vector that points from A to B. Invalid if distance is zero.
distance: f32< The final distance, zero if overlapped
iterations: c_int< Number of GJK iterations used
simplexCount: c_int< The number of simplexes stored in the simplex array
Trait Implementations§
Source§impl Clone for b2DistanceOutput
impl Clone for b2DistanceOutput
Source§fn clone(&self) -> b2DistanceOutput
fn clone(&self) -> b2DistanceOutput
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 b2DistanceOutput
impl Debug for b2DistanceOutput
impl Copy for b2DistanceOutput
Auto Trait Implementations§
impl Freeze for b2DistanceOutput
impl RefUnwindSafe for b2DistanceOutput
impl Send for b2DistanceOutput
impl Sync for b2DistanceOutput
impl Unpin for b2DistanceOutput
impl UnwindSafe for b2DistanceOutput
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)