Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::ConvexPolygon2D Class Reference

#include <ConvexPolyhedron.h>

List of all members.

Public Member Functions

bool contains (const Vector2 &p, bool reverseWinding=false) const
 ConvexPolygon2D (const Array< Vector2 > &pts, bool reverse=false)
 ConvexPolygon2D ()
int numVertices () const
const Vector2vertex (int index) const


Constructor & Destructor Documentation

G3D::ConvexPolygon2D::ConvexPolygon2D (  )  [inline]

G3D::ConvexPolygon2D::ConvexPolygon2D ( const Array< Vector2 > &  pts,
bool  reverse = false 
)

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.


Member Function Documentation

bool G3D::ConvexPolygon2D::contains ( const Vector2 p,
bool  reverseWinding = false 
) const

Parameters:
reverseWinding If true, the winding direction of the polygon is reversed for this test.

int G3D::ConvexPolygon2D::numVertices (  )  const [inline]

const Vector2& G3D::ConvexPolygon2D::vertex ( int  index  )  const [inline]


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:45 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo