[−][src]Struct mgf::LocalContact
A point of contact between two objects that includes the contact points for each object in terms of the object's center.
A LocalContact is derived from a regular Contact and includes all of the same information including the contact points in the local coordinates of the objects they belong to.
Fields
local_a: Point3<f32>
Global contact point a
relative to the center of object a at the time of
collision.
local_b: Point3<f32>
Global contact point b
relative to the center of object b at the time of
collision.
global: Contact
Contact the LocalContact was derived from.
Trait Implementations
impl Clone for LocalContact
[src]
fn clone(&self) -> LocalContact
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LocalContact
[src]
impl Debug for LocalContact
[src]
impl From<LocalContact> for Manifold
[src]
fn from(lc: LocalContact) -> Self
[src]
impl Neg for LocalContact
[src]
type Output = LocalContact
The resulting type after applying the -
operator.
fn neg(self) -> Self
[src]
Negate the normal and swap contact points
Auto Trait Implementations
impl RefUnwindSafe for LocalContact
impl Send for LocalContact
impl Sync for LocalContact
impl Unpin for LocalContact
impl UnwindSafe for LocalContact
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,