#include <ConvexPolyhedron.h>
G3D::ConvexPolygon2D::ConvexPolygon2D |
( |
| ) |
|
|
inline |
Points are counter-clockwise in a Y = down, X = right coordinate system.
- Parameters
-
reverse | If true, the points are reversed (i.e. winding direction is changed) before the polygon is created. |
Array< Vector2 > m_vertex
Definition: ConvexPolyhedron.h:150
- Parameters
-
reverseWinding | If true, the winding direction of the polygon is reversed for this test. |
433 float r = reverse ? -1.0f : 1.0f;
435 for (
int i0 = 0; i0 <
m_vertex.size(); ++i0) {
436 int i1 = (i0 + 1) %
m_vertex.size();
445 float area = -(e0.x * e1.y - e0.y * e1.x);
Array< Vector2 > m_vertex
Definition: ConvexPolyhedron.h:150
int G3D::ConvexPolygon2D::numVertices |
( |
| ) |
const |
|
inline |
Array< Vector2 > m_vertex
Definition: ConvexPolyhedron.h:150
const Vector2& G3D::ConvexPolygon2D::vertex |
( |
int |
index | ) |
const |
|
inline |
Array< Vector2 > m_vertex
Definition: ConvexPolyhedron.h:150
#define debugAssert(exp)
Definition: debugAssert.h:160
The documentation for this class was generated from the following files: