Enum ncollide3d::bounding_volume::PolyhedralCone[][src]

pub enum PolyhedralCone<N: Real> {
    Full,
    Empty,
    HalfLine(Unit<Vector<N>>),
    HalfSpace(Unit<Vector<N>>),
    OrthogonalSubspace(Unit<Vector<N>>),
    Span(SmallVec<[Unit<Vector<N>>; 4]>),
}

A convex cone with polyhedral faces and its apex at the origin.

A polyhedral cone is a set of half-lines forming a convex set. It is usually used to bound a set of directions like normals and tangents. It must be convex and can be generated from a finite set of vectors.

Variants

A polyhedral cone which is the whole space.

An empty cone containing only the zero vector.

The half-line starting at the origin, pointing toward the given diretion.

The half-space which boundary has the given diretion as normal.

The subspace orthogonal to the given diretion.

All the positive linear combinations of the given set of vectors.

Methods

impl<N: Real> PolyhedralCone<N>
[src]

If this polyhedral cone spans a single half-line, returns its direction.

Applies the given transformation to each direction bounded by this cone.

Tests whether the given vector is contained by this cone.

Tests if the polar of this cone contains the given direction.

This test is much sheaper than .contains().

Tests if this cone contains the given unit direction.

Trait Implementations

impl<N: Clone + Real> Clone for PolyhedralCone<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Debug + Real> Debug for PolyhedralCone<N>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<N> Send for PolyhedralCone<N> where
    N: Scalar

impl<N> Sync for PolyhedralCone<N> where
    N: Scalar