Open
Graph Drawing
Framework

 v.2007.11
 

ogdf::DPoint Class Reference

Real points. More...

#include <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 236 of file geometry.h.


Constructor & Destructor Documentation

ogdf::DPoint::DPoint (  )  [inline]

Creates an real point (0,0).

Definition at line 240 of file geometry.h.

ogdf::DPoint::DPoint ( double  x,
double  y 
) [inline]

Creates an real point (x,y).

Definition at line 243 of file geometry.h.

ogdf::DPoint::DPoint ( const DPoint dp  )  [inline]

Copy constructor.

Definition at line 246 of file geometry.h.


Member Function Documentation

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

Relaxed equality operator.

Definition at line 249 of file geometry.h.

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

Addition of real points.

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

Subtraction of real points.

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

Returns the euclidean distance between p and this point.


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

© 1999-2007 by oreas GmbH, © 2005-2007 by University Dortmund and University Cologne.

Generated on Thu Nov 22 19:40:07 2007 by doxygen 1.5.4.