Integer points. More...
#include <ogdf/basic/geometry.h>
Inheritance diagram for ogdf::IPoint: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. | |
Public Member Functions inherited from ogdf::GenericPoint< int > | |
| GenericPoint () | |
| Creates a generic point. | |
| GenericPoint (intx, inty) | |
| Creates a generic point (x,y). | |
| GenericPoint (const GenericPoint &ip) | |
| Copy constructor. | |
| bool | operator!= (const GenericPoint &ip) const |
| Inequality operator. | |
| GenericPoint | operator= (const GenericPoint &ip) |
| Assignment operator. | |
| bool | operator== (const GenericPoint &ip) const |
| Equality operator. | |
Additional Inherited Members | |
Public Types inherited from ogdf::GenericPoint< int > | |
| typedef int | numberType |
| The type for coordinates of the point. | |
Public Attributes inherited from ogdf::GenericPoint< int > | |
| int | m_x |
| The x-coordinate. | |
| int | m_y |
| The y-coordinate. | |
Integer points.
This class represent a two-dimensional point with integer coordinates.
Definition at line 165 of file geometry.h.
|
inline |
Creates an integer point (0,0).
Definition at line 169 of file geometry.h.
|
inline |
Creates an integer point (x,y).
Definition at line 172 of file geometry.h.
|
inline |
Copy constructor.
Definition at line 175 of file geometry.h.
| double ogdf::IPoint::distance | ( | const IPoint & | p | ) | const |
Returns the euclidean distance between p and this point.