#include <GtePolygon2.h>
Public Member Functions | |
Real | ComputeArea () const |
Real | ComputePerimeterLength () const |
Vector2< Real > | ComputeVertexAverage () const |
bool | CounterClockwise () const |
std::vector< int > const & | GetIndices () const |
Vector2< Real > const * | GetVertexPool () const |
std::set< int > const & | GetVertices () const |
bool | IsConvex () const |
bool | IsSimple () const |
operator bool () const | |
Polygon2 (Vector2< Real > const *vertexPool, int numIndices, int const *indices, bool counterClockwise) | |
Private Member Functions | |
bool | IsConvexInternal () const |
bool | IsSimpleInternal () const |
Private Attributes | |
bool | mCounterClockwise |
std::vector< int > | mIndices |
Vector2< Real > const * | mVertexPool |
std::set< int > | mVertices |
Definition at line 46 of file GtePolygon2.h.
gte::Polygon2< Real >::Polygon2 | ( | Vector2< Real > const * | vertexPool, |
int | numIndices, | ||
int const * | indices, | ||
bool | counterClockwise | ||
) |
Definition at line 100 of file GtePolygon2.h.
Real gte::Polygon2< Real >::ComputeArea | ( | ) | const |
Definition at line 193 of file GtePolygon2.h.
Real gte::Polygon2< Real >::ComputePerimeterLength | ( | ) | const |
Definition at line 176 of file GtePolygon2.h.
Vector2< Real > gte::Polygon2< Real >::ComputeVertexAverage | ( | ) | const |
Definition at line 161 of file GtePolygon2.h.
|
inline |
Definition at line 155 of file GtePolygon2.h.
|
inline |
Definition at line 149 of file GtePolygon2.h.
|
inline |
Definition at line 137 of file GtePolygon2.h.
|
inline |
Definition at line 143 of file GtePolygon2.h.
bool gte::Polygon2< Real >::IsConvex | ( | ) | const |
Definition at line 234 of file GtePolygon2.h.
|
private |
Definition at line 286 of file GtePolygon2.h.
bool gte::Polygon2< Real >::IsSimple | ( | ) | const |
Definition at line 214 of file GtePolygon2.h.
|
private |
Definition at line 254 of file GtePolygon2.h.
|
inline |
Definition at line 131 of file GtePolygon2.h.
|
private |
Definition at line 95 of file GtePolygon2.h.
|
private |
Definition at line 94 of file GtePolygon2.h.
|
private |
Definition at line 92 of file GtePolygon2.h.
|
private |
Definition at line 93 of file GtePolygon2.h.