Integer points. More...
#include <ogdf/basic/geometry.h>
Inheritance diagram for ogdf::IPoint:Public Member Functions | |
| IPoint () | |
| Creates an integer point (0,0). More... | |
| IPoint (int x, int y) | |
Creates an integer point (x,p y). More... | |
| IPoint (const IPoint &ip) | |
| Copy constructor. More... | |
| double | distance (const IPoint &p) const |
Returns the euclidean distance between p and this point. More... | |
Public Member Functions inherited from ogdf::GenericPoint< int > | |
| GenericPoint () | |
| Creates a generic point. More... | |
| GenericPoint (int x, int y) | |
Creates a generic point (x,y). More... | |
| GenericPoint (const GenericPoint &p) | |
| Copy constructor. More... | |
| double | angle (GenericPoint q, GenericPoint r) const |
| Compute angle (in radians) between vectors. More... | |
| double | angleDegrees (GenericPoint q, GenericPoint r) const |
| Compute angle (in degrees) between vectors. More... | |
| bool | operator!= (const GenericPoint &p) const |
| Inequality operator. More... | |
| bool | operator< (const GenericPoint &p) |
| GenericPoint & | operator= (const GenericPoint &p) |
| Assignment operator. More... | |
| bool | operator== (const GenericPoint &p) const |
| Equality operator. More... | |
| bool | operator> (const GenericPoint &p) |
Additional Inherited Members | |
Public Types inherited from ogdf::GenericPoint< int > | |
| using | numberType = int |
| The type for coordinates of the point. More... | |
Public Attributes inherited from ogdf::GenericPoint< int > | |
| int | m_x |
| The x-coordinate. More... | |
| int | m_y |
| The y-coordinate. More... | |
Integer points.
This class represent a two-dimensional point with integer coordinates.
Definition at line 156 of file geometry.h.
|
inline |
Creates an integer point (0,0).
Definition at line 160 of file geometry.h.
|
inline |
Creates an integer point (x,p y).
Definition at line 163 of file geometry.h.
|
inline |
Copy constructor.
Definition at line 166 of file geometry.h.
| double ogdf::IPoint::distance | ( | const IPoint & | p | ) | const |
Returns the euclidean distance between p and this point.