| Support Forum G3D Web Page |
Public Member Functions | |
| ConvexPolygon2D () | |
| ConvexPolygon2D (const Array< Vector2 > &pts, bool reverse=false) | |
Points are counter-clockwise in a Y = down, X = right coordinate system. More... | |
| bool | contains (const Vector2 &p, bool reverseWinding=false) const |
| int | numVertices () const |
| const Vector2 & | vertex (int index) const |
|
inline |
Points are counter-clockwise in a Y = down, X = right coordinate system.
| reverse | If true, the points are reversed (i.e. winding direction is changed) before the polygon is created. |
| bool G3D::ConvexPolygon2D::contains | ( | const Vector2 & | p, |
| bool | reverseWinding = false |
||
| ) | const |
| reverseWinding | If true, the winding direction of the polygon is reversed for this test. |
|
inline |
|
inline |
1.8.15