Real points. More...
#include <ogdf/basic/geometry.h>
Inheritance diagram for ogdf::DPoint:Public Member Functions | |
| DPoint () | |
| Creates a real point (0,0). More... | |
| DPoint (double x, double y) | |
Creates a real point (x,y). More... | |
| DPoint (const DPoint &dp) | |
| Copy constructor. More... | |
| double | distance (const DPoint &p) const |
Returns the euclidean distance between p and this point. More... | |
| double | norm () const |
| Returns the norm of the point. More... | |
| DPoint & | operator*= (double c) |
| DPoint | operator+ (const DPoint &p) const |
| Addition of real points. More... | |
| DPoint & | operator+= (const DPoint &p) |
| DPoint | operator- (const DPoint &p) const |
| Subtraction of real points. More... | |
| DPoint & | operator-= (const DPoint &p) |
| DPoint & | operator/= (double c) |
| bool | operator== (const DPoint &dp) const |
| Relaxed equality operator. More... | |
Public Member Functions inherited from ogdf::GenericPoint< double > | |
| GenericPoint () | |
| Creates a generic point. More... | |
| GenericPoint (double x, double 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) |
Friends | |
| DPoint | operator* (double c, const DPoint &p) |
Additional Inherited Members | |
Public Types inherited from ogdf::GenericPoint< double > | |
| using | numberType = double |
| The type for coordinates of the point. More... | |
Public Attributes inherited from ogdf::GenericPoint< double > | |
| double | m_x |
| The x-coordinate. More... | |
| double | m_y |
| The y-coordinate. More... | |
Real points.
This class represent a two-dimensional point with real coordinates.
Definition at line 219 of file geometry.h.
|
inline |
Creates a real point (0,0).
Definition at line 223 of file geometry.h.
|
inline |
Creates a real point (x,y).
Definition at line 226 of file geometry.h.
|
inline |
Copy constructor.
Definition at line 229 of file geometry.h.
| double ogdf::DPoint::distance | ( | const DPoint & | p | ) | const |
Returns the euclidean distance between p and this point.
|
inline |
Returns the norm of the point.
Definition at line 237 of file geometry.h.
|
inline |
Definition at line 259 of file geometry.h.
Definition at line 247 of file geometry.h.
Definition at line 253 of file geometry.h.
|
inline |
Definition at line 265 of file geometry.h.
|
inline |
Relaxed equality operator.
Definition at line 232 of file geometry.h.
Definition at line 271 of file geometry.h.