Trait ncollide2df64::implicit::Implicit
pub trait Implicit<V: RealVec<N>, M>: HasMargin { fn support_point_without_margin(&self, transform: &M, dir: &V) -> V; fn support_point(&self, transform: &M, dir: &V) -> V { ... } }
Traits of convex geometries representable by a support mapping function.
Parameters:
- V - type of the support mapping direction argument and of the returned point.
Required Methods
fn support_point_without_margin(&self, transform: &M, dir: &V) -> V
Evaluates the support function of the object. A support function is a
function associating a vector to the geometry point which maximizes their
dot product. This does not include the margin
of the object. Margins are
geometry-dependent. Use support_point
to sample the complete geometry.
Arguments:
dir
- the input of the support function. It is not required for it to be normalized.
Provided Methods
fn support_point(&self, transform: &M, dir: &V) -> V
Evaluates the support function of the object. A support function is a function associating a vector to the geometry point which maximizes their dot product.
Arguments:
dir
- the input of the support function. It is not required for it to be normalized.
Implementors
AnnotatedMinkowskiSum<'a, G1, G2>
MinkowskiSum<'a, G1, G2>
Segment
Triangle
Reflection<'a, G>
Convex
Cylinder
Cone
Capsule
Ball
Box
GeomWithMargin<'a, G>
impl<'a, V: RealVec<N>, M> Implicit<V, M> for &'a Implicit<V, M>