OpenLayer Offline Manual

OpenLayer | Shape | Poly | Add Add
inline void Add( | Vec2D vec )
Adds a vertex to the polygon. The new vertex will be added to the polygon such that it connects the previously added vertex and the first vertex. Examples Polygon polygon( ... ); // Add a vertex (x = 200, y = 100) to the polygon // polygon.Add( Vec2D( 200.0, 100.0 )); Other functions of the class Poly
Add | Adds a vertex to the polygon
GetVertex | Returns the specified vertex
GetNumberOfVertices | Returns the number of vertices in the polygon
Draw | Draws a filled polygon.
DrawOutline | Draws an outline of the polygon
Collides | Tests if two polygons collide
GetCollision | Checks for a collision and returns detailed information about the collision
GetVertices | Returns the list of the vertices in the polygon
SetPivot | Sets the rotation pivot
GetPivot | Returns the the rotation pivot
SetOutlineTexture | Sets the texture of the outline of the polygon
Back to the main page of the manual Questions about Add? Click here.