Integer points. More...
#include <ogdf/basic/geometry.h>
Public Member Functions | |
| IPoint () | |
| Creates an integer point (0,0). | |
| IPoint (int x, int y) | |
| Creates an integer point (x,y). | |
| IPoint (const IPoint &ip) | |
| Copy constructor. | |
| double | distance (const IPoint &p) const |
| Returns the euclidean distance between p and this point. | |
Integer points.
This class represent a two-dimensional point with integer coordinates.
Definition at line 175 of file geometry.h.
| ogdf::IPoint::IPoint | ( | ) | [inline] |
Creates an integer point (0,0).
Definition at line 179 of file geometry.h.
| ogdf::IPoint::IPoint | ( | int | x, | |
| int | y | |||
| ) | [inline] |
Creates an integer point (x,y).
Definition at line 182 of file geometry.h.
| ogdf::IPoint::IPoint | ( | const IPoint & | ip | ) | [inline] |
Copy constructor.
Definition at line 185 of file geometry.h.
| double ogdf::IPoint::distance | ( | const IPoint & | p | ) | const |
Returns the euclidean distance between p and this point.