#include <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. | |
This class represent a two-dimensional point with real coordinates.
Definition at line 236 of file geometry.h.
| ogdf::DPoint::DPoint | ( | ) | [inline] |
| ogdf::DPoint::DPoint | ( | double | x, | |
| double | y | |||
| ) | [inline] |
| ogdf::DPoint::DPoint | ( | const DPoint & | dp | ) | [inline] |
| bool ogdf::DPoint::operator== | ( | const DPoint & | dp | ) | const [inline] |
| double ogdf::DPoint::distance | ( | const DPoint & | p | ) | const |
Returns the euclidean distance between p and this point.