Open
Graph Drawing
Framework

 v.2012.05
 

ogdf::DPoint Class Reference

Real points. More...

#include <ogdf/basic/geometry.h>

Inheritance diagram for ogdf::DPoint:
ogdf::GenericPoint< double > ogdf::DVector

List of all members.

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.

Detailed Description

Real points.

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

Definition at line 228 of file geometry.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

double ogdf::DPoint::distance ( const DPoint p) const

Returns the euclidean distance between p and this point.

DPoint ogdf::DPoint::operator+ ( const DPoint p) const

Addition of real points.

DPoint ogdf::DPoint::operator- ( const DPoint p) const

Subtraction of real points.

bool ogdf::DPoint::operator== ( const DPoint dp) const [inline]

Relaxed equality operator.

Definition at line 241 of file geometry.h.


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