#[repr(C)]pub struct b3DistanceOutput {
pub pointA: b3Vec3,
pub pointB: b3Vec3,
pub normal: b3Vec3,
pub distance: f32,
pub iterations: c_int,
pub simplexCount: c_int,
}Expand description
Output for b3ShapeDistance
Fields§
§pointA: b3Vec3< Closest point on shapeA, in shape A’s frame
pointB: b3Vec3< Closest point on shapeB, in shape A’s frame
normal: b3Vec3< A to B normal in shape A’s frame. 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 b3DistanceOutput
impl Clone for b3DistanceOutput
Source§fn clone(&self) -> b3DistanceOutput
fn clone(&self) -> b3DistanceOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for b3DistanceOutput
Auto Trait Implementations§
impl Freeze for b3DistanceOutput
impl RefUnwindSafe for b3DistanceOutput
impl Send for b3DistanceOutput
impl Sync for b3DistanceOutput
impl Unpin for b3DistanceOutput
impl UnsafeUnpin for b3DistanceOutput
impl UnwindSafe for b3DistanceOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more