pub struct GjkResult {
pub intersecting: bool,
pub distance: f32,
pub closest_a: [f32; 3],
pub closest_b: [f32; 3],
pub axis: [f32; 3],
}Expand description
Result of a GJK distance query.
Fields§
§intersecting: boolWhether the shapes are intersecting (distance = 0).
distance: f32Minimum distance between the shapes (0 if intersecting).
closest_a: [f32; 3]Closest point on shape A.
closest_b: [f32; 3]Closest point on shape B.
axis: [f32; 3]Separation axis (unit vector from B to A).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GjkResult
impl RefUnwindSafe for GjkResult
impl Send for GjkResult
impl Sync for GjkResult
impl Unpin for GjkResult
impl UnsafeUnpin for GjkResult
impl UnwindSafe for GjkResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more