#include <geometry.h>
Public Types | |
| typedef NUMBER | numberType |
| The type for coordinates of the point. | |
Public Member Functions | |
| GenericPoint () | |
| Creates a generic point. | |
| GenericPoint (NUMBER x, NUMBER y) | |
| Creates a generic point (x,y). | |
| GenericPoint (const GenericPoint &ip) | |
| Copy constructor. | |
| GenericPoint | operator= (const GenericPoint &ip) |
| Assignment operator. | |
| bool | operator== (const GenericPoint &ip) const |
| Equality operator. | |
| bool | operator!= (const GenericPoint &ip) const |
| Inequality operator. | |
Public Attributes | |
| NUMBER | m_x |
| The x-coordinate. | |
| NUMBER | m_y |
| The y-coordinate. | |
This class serves as base class for two-dimensional points with specific coordinate types like integer points (IPoint) and real points (DPoint). The template parameter NUMBER is the type for the coordinates of the point and has to support assignment and equality/inequality operators.
Definition at line 126 of file geometry.h.
| typedef NUMBER ogdf::GenericPoint< NUMBER >::numberType |
| ogdf::GenericPoint< NUMBER >::GenericPoint | ( | ) | [inline] |
Creates a generic point.
Definition at line 140 of file geometry.h.
| ogdf::GenericPoint< NUMBER >::GenericPoint | ( | NUMBER | x, | |
| NUMBER | y | |||
| ) | [inline] |
| ogdf::GenericPoint< NUMBER >::GenericPoint | ( | const GenericPoint< NUMBER > & | ip | ) | [inline] |
| GenericPoint ogdf::GenericPoint< NUMBER >::operator= | ( | const GenericPoint< NUMBER > & | ip | ) | [inline] |
| bool ogdf::GenericPoint< NUMBER >::operator== | ( | const GenericPoint< NUMBER > & | ip | ) | const [inline] |
| bool ogdf::GenericPoint< NUMBER >::operator!= | ( | const GenericPoint< NUMBER > & | ip | ) | const [inline] |
| NUMBER ogdf::GenericPoint< NUMBER >::m_x |
| NUMBER ogdf::GenericPoint< NUMBER >::m_y |