Struct ncollide_geometry::query::Contact
[−]
[src]
pub struct Contact<P: Point> { pub world1: P, pub world2: P, pub normal: Unit<P::Vector>, pub depth: P::Real, }
Geometric description of a contact.
Fields
world1: P
Position of the contact on the first object. The position is expressed in world space.
world2: P
Position of the contact on the second object. The position is expressed in world space.
normal: Unit<P::Vector>
Contact normal
depth: P::Real
Penetration depth
Methods
impl<P: Point> Contact<P>
[src]
pub fn new(
world1: P,
world2: P,
normal: Unit<P::Vector>,
depth: P::Real
) -> Contact<P>
[src]
world1: P,
world2: P,
normal: Unit<P::Vector>,
depth: P::Real
) -> Contact<P>
Creates a new contact.
impl<P: Point> Contact<P>
[src]
Trait Implementations
impl<P: Debug + Point> Debug for Contact<P> where
P::Vector: Debug,
P::Real: Debug,
[src]
P::Vector: Debug,
P::Real: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<P: PartialEq + Point> PartialEq for Contact<P> where
P::Vector: PartialEq,
P::Real: PartialEq,
[src]
P::Vector: PartialEq,
P::Real: PartialEq,
fn eq(&self, __arg_0: &Contact<P>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Contact<P>) -> bool
[src]
This method tests for !=
.
impl<P: Clone + Point> Clone for Contact<P> where
P::Vector: Clone,
P::Real: Clone,
[src]
P::Vector: Clone,
P::Real: Clone,