Struct ncollide2d::shape::ConvexPolygonalFeature[][src]

pub struct ConvexPolygonalFeature<N: Real> {
    pub vertices: [Point<N>; 2],
    pub nvertices: usize,
    pub normal: Option<Unit<Vector<N>>>,
    pub feature_id: FeatureId,
    pub vertices_id: [FeatureId; 2],
}

A feature (face or vertex) of a 2D convex polygon.

Fields

The vertices of this face.

Number of vertices in vertices to be considered.

The normal of this feature if it is an edge.

The shape-dependent identifier of this feature.

The shape-dependent indentifier of each vertex of this feature.

Methods

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

Creates a new empty convex polygonal faces.

Removes all the vertices, normals, and feature IDs of this feature.

Transforms all the vertices and normal of this feature by the given isometry.

Adds a vertex to this face.

It is not checked whether pt breaks the convexity of the polyhedral face.

The number of vertices of this face.

The vertices of this convex polygonal face.

Sets the outward normal of this convex polygonal face.

Sets the identifier of the feature represented by this convex polygon.

Projects a point on this feature.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations