xRPG Core Library Procedures - RNBMATH: addPolygonPoint()
Add a point to the Polygon.
The polygon exists as a collection of Points. This procedure is used to add points to the polygon. The points
should be added in either a clockwise or counter clockwise manner, especially for the perimeter function to work
properly.
Usage:
addPolygonPoint( xCoordinate : yCoordinate );
| xCoordinate |
10, 4 |
Const |
Req |
The X Coordinate of the point. |
| yCoordinate |
10, 4 |
Const |
Req |
The Y Coordinate of the point. |
| Returns: |
5i 0 |
n/a |
n/a |
The number of Points in the Polygon after the add operation. |