Definition at line 35 of file CPolygon.hpp.
| Exponent::MathTools::CPolygon::CPolygon | ( | const long | numberOfPoints | ) |
Construction
| numberOfPoints | The total number of points in the polygon |
| Exponent::MathTools::CPolygon::CPolygon | ( | const CPolygon & | polygon | ) |
Copy construction
| polygon | The polygon |
| Exponent::MathTools::CPolygon::CPolygon | ( | ) |
Default construction
| virtual Exponent::MathTools::CPolygon::~CPolygon | ( | ) | [virtual] |
Destruction
| TCountedPointerArray<CPoint>* Exponent::MathTools::CPolygon::getMutablePointArray | ( | ) | const [inline] |
Get the point array
| TCountedPointerArray<CPoint>* | The point array |
Definition at line 111 of file CPolygon.hpp.
References m_pointArray.
| long Exponent::MathTools::CPolygon::getNumberOfPoints | ( | ) | const |
Get the number of points
| long | The number of points in the polygon |
| CPoint* Exponent::MathTools::CPolygon::getPoint | ( | const long | index | ) |
Get a specific point
| index | The index of the point required |
| CPoint* | The point requested or NULL on error |
| const TCountedPointerArray<CPoint>* Exponent::MathTools::CPolygon::getPointArray | ( | ) | const [inline] |
Get the point array
| const | TCountedPointerArray<CPoint>* The point array |
Definition at line 105 of file CPolygon.hpp.
References m_pointArray.
| void Exponent::MathTools::CPolygon::initialiseArray | ( | const long | numberOfPoints | ) |
Initialise the array
| numberOfPoints | The number of points in the array |
| void Exponent::MathTools::CPolygon::offset | ( | const CPoint & | point | ) |
Offset the position of the rectangle
| point | The position to offset by |
Assignment operator
| polygon | The polygon to copy |
| CPolygon& | A reference to this |
| virtual bool Exponent::MathTools::CPolygon::operator== | ( | const CPolygon & | polygon | ) | [virtual] |
Equality operator
| polygon | The polygon to compare to |
| bool | True if polygons are equal, false otherwise |
| void Exponent::MathTools::CPolygon::setPoint | ( | const CPoint & | point, | |
| const long | index | |||
| ) |
Set a point
| point | The position | |
| index | The index of this point |
The array of points
Definition at line 137 of file CPolygon.hpp.
Referenced by getMutablePointArray(), and getPointArray().