Open
Graph Drawing
Framework

 v. snapshot-2017-02-16
 

ogdf::IPoint Class Reference

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...
 

Detailed Description

Integer points.

This class represent a two-dimensional point with integer coordinates.

Definition at line 156 of file geometry.h.

Constructor & Destructor Documentation

◆ IPoint() [1/3]

ogdf::IPoint::IPoint ( )
inline

Creates an integer point (0,0).

Definition at line 160 of file geometry.h.

◆ IPoint() [2/3]

ogdf::IPoint::IPoint ( int  x,
int  y 
)
inline

Creates an integer point (x,p y).

Definition at line 163 of file geometry.h.

◆ IPoint() [3/3]

ogdf::IPoint::IPoint ( const IPoint &  ip)
inline

Copy constructor.

Definition at line 166 of file geometry.h.

Member Function Documentation

◆ distance()

double ogdf::IPoint::distance ( const IPoint &  p) const

Returns the euclidean distance between p and this point.


The documentation for this class was generated from the following file: