![]() | Macro Programming | ![]() |
#include <pointarray.h>
Public Member Functions | |
void | attachPoint (point p) |
attachPoint | |
void | flip () |
flip | |
void | insert (int i, point p) |
insert | |
point | point (int i) |
get point | |
int | resize (int size) |
resize | |
void | set (int i, int x, int y) |
set xy | |
void | setPoint (int i, point p) |
set point | |
int | size () |
size |
A array of points.
void pointArray::attachPoint | ( | point | p | ) |
attachPoint
Add the point p to the end of the pointArray
void pointArray::flip | ( | ) |
flip
Turns around the order of points
void pointArray::insert | ( | int | i, | |
point | p | |||
) |
insert
Inserts the point p at the position p
point pointArray::point | ( | int | i | ) |
get point
int pointArray::resize | ( | int | size | ) |
resize
Resize the array of points.
void pointArray::set | ( | int | i, | |
int | x, | |||
int | y | |||
) |
set xy
Set the x and y coordinates on Index i.
void pointArray::setPoint | ( | int | i, | |
point | p | |||
) |
set point
Set the point to index i.
int pointArray::size | ( | ) |