pub struct Intersection {
pub normal: Vector3,
pub depth: f32,
pub point_on_a: Vector3,
pub point_on_b: Vector3,
}Fields§
§normal: Vector3§depth: f32§point_on_a: Vector3The contact point on shape A, in world coordinates.
point_on_b: Vector3The contact point on shape B, in world coordinates.
Implementations§
Source§impl Intersection
impl Intersection
Sourcepub fn swap(self) -> Intersection
pub fn swap(self) -> Intersection
Returns this intersection with the contact points swapped.
Trait Implementations§
Source§impl Clone for Intersection
impl Clone for Intersection
Source§impl Debug for Intersection
impl Debug for Intersection
Source§impl From<DynamicIntersection> for Intersection
impl From<DynamicIntersection> for Intersection
Source§fn from(intersection: DynamicIntersection) -> Self
fn from(intersection: DynamicIntersection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Intersection
impl PartialEq for Intersection
impl StructuralPartialEq for Intersection
Auto Trait Implementations§
impl Freeze for Intersection
impl RefUnwindSafe for Intersection
impl Send for Intersection
impl Sync for Intersection
impl Unpin for Intersection
impl UnsafeUnpin for Intersection
impl UnwindSafe for Intersection
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