|
Dura2D
v0.1.0
An educational 2D game physics library
|
#include <d2Shape.h>
Public Member Functions | |
| d2BoxShape (real width, real height) | |
| virtual | ~d2BoxShape () |
| d2ShapeType | GetType () const override |
| d2Shape * | Clone () const override |
| real | GetMomentOfInertia () const override |
Public Member Functions inherited from d2PolygonShape | |
| d2PolygonShape ()=default | |
| d2PolygonShape (const d2Vec2 *vertices, int vertexCount) | |
| virtual | ~d2PolygonShape () |
| d2ShapeType | GetType () const override |
| d2Shape * | Clone () const override |
| d2Vec2 | EdgeAt (int index) const |
| real | FindMinSeparation (const d2PolygonShape *other, int &indexReferenceEdge, d2Vec2 &supportPoint) const |
| int | FindIncidentEdge (const d2Vec2 &normal) const |
| int | ClipSegmentToLine (const std::vector< d2Vec2 > &contactsIn, std::vector< d2Vec2 > &contactsOut, const d2Vec2 &c0, const d2Vec2 &c1) const |
| real | PolygonArea () const |
| d2Vec2 | PolygonCentroid () const |
| real | GetMomentOfInertia () const override |
| void | UpdateVertices (const d2Transform &transform) override |
Public Member Functions inherited from d2Shape | |
| virtual | ~d2Shape ()=default |
Additional Inherited Members | |
Public Attributes inherited from d2PolygonShape | |
| real | width |
| real | height |
| int | m_vertexCount |
| d2Vec2 * | localVertices |
| d2Vec2 * | worldVertices |
|
virtual |
|
overridevirtual |
Implements d2Shape.