#include <d2Shape.h>
◆ d2PolygonShape() [1/2]
d2PolygonShape::d2PolygonShape |
( |
| ) |
|
|
default |
◆ d2PolygonShape() [2/2]
d2PolygonShape::d2PolygonShape |
( |
const d2Vec2 * | vertices, |
|
|
int | vertexCount ) |
◆ ~d2PolygonShape()
virtual d2PolygonShape::~d2PolygonShape |
( |
| ) |
|
|
virtual |
◆ ClipSegmentToLine()
int d2PolygonShape::ClipSegmentToLine |
( |
const std::vector< d2Vec2 > & | contactsIn, |
|
|
std::vector< d2Vec2 > & | contactsOut, |
|
|
const d2Vec2 & | c0, |
|
|
const d2Vec2 & | c1 ) const |
◆ Clone()
d2Shape * d2PolygonShape::Clone |
( |
| ) |
const |
|
overridevirtual |
◆ EdgeAt()
d2Vec2 d2PolygonShape::EdgeAt |
( |
int | index | ) |
const |
◆ FindIncidentEdge()
int d2PolygonShape::FindIncidentEdge |
( |
const d2Vec2 & | normal | ) |
const |
◆ FindMinSeparation()
real d2PolygonShape::FindMinSeparation |
( |
const d2PolygonShape * | other, |
|
|
int & | indexReferenceEdge, |
|
|
d2Vec2 & | supportPoint ) const |
◆ GetMomentOfInertia()
real d2PolygonShape::GetMomentOfInertia |
( |
| ) |
const |
|
overridevirtual |
◆ GetType()
◆ PolygonArea()
real d2PolygonShape::PolygonArea |
( |
| ) |
const |
◆ PolygonCentroid()
d2Vec2 d2PolygonShape::PolygonCentroid |
( |
| ) |
const |
◆ UpdateVertices()
void d2PolygonShape::UpdateVertices |
( |
const d2Transform & | transform | ) |
|
|
overridevirtual |
◆ d2World
◆ height
real d2PolygonShape::height |
◆ localVertices
d2Vec2* d2PolygonShape::localVertices |
◆ m_vertexCount
int d2PolygonShape::m_vertexCount |
◆ width
real d2PolygonShape::width |
◆ worldVertices
d2Vec2* d2PolygonShape::worldVertices |
The documentation for this struct was generated from the following file: