|
Jafar
|
Simple Point2D class, where the x and y are int. More...
Simple Point2D class, where the x and y are int.
Definition at line 15 of file point2D.hpp.
#include <point2D.hpp>
Public Types | |
| enum | STATE { BAD_POINT = 0, GOOD_POINT = 1 } |
Public Member Functions | |
| Point2D (const Point2D &) | |
| Copy constructor. | |
| Point2D (int x, int y) | |
| constructor with given coordinates | |
| Point2D & | operator= (const Point2D &) |
| implement = operator | |
| bool | isGoodPoint () |
| Decides wether the point is good or bad depending on its state. | |
| int | x () const |
| int | y () const |
| void | setCoord (int x, int y) |
| setter | |
| virtual void | clear () |
| set the point at the origin (0,0) | |
Public Attributes | |
| int | m_x |
| Data Member. | |
| int | m_y |
| Point2D::STATE | state |
| can tel if this point is a "good" one or a "bad" one for example a bad point can be a result of an Outer measure | |
| Generated on Wed Oct 15 2014 00:37:42 for Jafar by doxygen 1.7.6.1 |
|