Real points. More...
#include <ogdf/basic/geometry.h>
Public Member Functions | |
| DPoint () | |
| Creates an real point (0,0). | |
| DPoint (double x, double y) | |
| Creates an real point (x,y). | |
| DPoint (const DPoint &dp) | |
| Copy constructor. | |
| bool | operator== (const DPoint &dp) const |
| Relaxed equality operator. | |
| DPoint | operator+ (const DPoint &p) const |
| Addition of real points. | |
| DPoint | operator- (const DPoint &p) const |
| Subtraction of real points. | |
| double | distance (const DPoint &p) const |
| Returns the euclidean distance between p and this point. | |
Real points.
This class represent a two-dimensional point with real coordinates.
Definition at line 228 of file geometry.h.
| ogdf::DPoint::DPoint | ( | ) | [inline] |
Creates an real point (0,0).
Definition at line 232 of file geometry.h.
| ogdf::DPoint::DPoint | ( | double | x, |
| double | y | ||
| ) | [inline] |
Creates an real point (x,y).
Definition at line 235 of file geometry.h.
| ogdf::DPoint::DPoint | ( | const DPoint & | dp | ) | [inline] |
Copy constructor.
Definition at line 238 of file geometry.h.
| double ogdf::DPoint::distance | ( | const DPoint & | p | ) | const |
Returns the euclidean distance between p and this point.
| bool ogdf::DPoint::operator== | ( | const DPoint & | dp | ) | const [inline] |
Relaxed equality operator.
Definition at line 241 of file geometry.h.