class csPoly2D The following class represents a general 2D polygon with a bounding box
| | AddVertex (float x, float y) Add a vertex (2D) to the polygon |
| | AddVertex (const csVector2& v) Add a vertex (2D) to the polygon |
| | ClipAgainst (csClipper* view) Clipping routines |
| | csPoly2D (int start_size = 10) Make a new empty polygon |
| | csPoly2D (csPoly2D& copy) Copy constructor. |
| | GetBoundingBox () Get the bounding box (in 2D space) for this polygon. |
| | GetFirst () Get the first vertex |
| | GetLast () Get the last vertex |
| | GetNumVertices () Get the number of vertices |
| | GetVertex (int i) Get the specified vertex |
| | GetVertices () Get the array with all vertices |
| | MakeEmpty () Initialize the polygon to empty |
| | MakeRoom (int new_max) Make room for at least the specified number of vertices |
| | operator[] (int i) Get the specified vertex |
| | SetVertices (csVector2 *v, int num) Set all polygon vertices at once |
| | ~csPoly2D () Destructor. |
| | bbox A 2D bounding box that is maintained automatically. |
| | max_vertices |
| | num_vertices |
| | vertices The 2D vertices. |
The following class represents a general 2D polygon with a bounding box
int num_vertices
int max_vertices
csBox bbox
csPoly2D(int start_size = 10)
csPoly2D(csPoly2D& copy)
virtual ~csPoly2D()
void MakeEmpty()
int GetNumVertices()
csVector2* GetVertices()
csVector2* GetVertex(int i)
csVector2& operator[] (int i)
csVector2* GetFirst()
csVector2* GetLast()
void MakeRoom(int new_max)
void AddVertex(const csVector2& v)
void AddVertex(float x, float y)
void SetVertices(csVector2 *v, int num)
csBox& GetBoundingBox()
bool ClipAgainst(csClipper* view)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de