#include <geometry.h>

Public Member Functions | |
| DVector () | |
| Creates a vector (0,0). | |
| DVector (double x, double y) | |
| Creates a vector (x,y). | |
| DVector (const DVector &dv) | |
| Copy constructor. | |
| DVector | operator= (const DPoint &ip) |
| Assignment operator. | |
| DVector | operator * (const double val) const |
| Multiplies all coordinates with val. | |
| DVector | operator/ (const double val) const |
| Divides all coordinates by val. | |
| double | length () const |
| Returns the length of the vector. | |
| double | operator^ (const DVector &dv) const |
| Returns the determinante of the vector. | |
| double | operator * (const DVector &dv) const |
| Returns the scalar product of this vecor and dv. | |
| DVector | operator++ () const |
| Returns a vector that is orthogonal to this vector. | |
| DVector | operator-- () const |
| Returns a vector that is orthogonal to this vector. | |
Definition at line 270 of file geometry.h.
| ogdf::DVector::DVector | ( | ) | [inline] |
| ogdf::DVector::DVector | ( | double | x, | |
| double | y | |||
| ) | [inline] |
| ogdf::DVector::DVector | ( | const DVector & | dv | ) | [inline] |
| DVector ogdf::DVector::operator * | ( | const double | val | ) | const |
Multiplies all coordinates with val.
| DVector ogdf::DVector::operator/ | ( | const double | val | ) | const |
Divides all coordinates by val.
| double ogdf::DVector::length | ( | ) | const |
Returns the length of the vector.
| double ogdf::DVector::operator^ | ( | const DVector & | dv | ) | const |
Returns the determinante of the vector.
| double ogdf::DVector::operator * | ( | const DVector & | dv | ) | const |
Returns the scalar product of this vecor and dv.
| DVector ogdf::DVector::operator++ | ( | ) | const |
Returns a vector that is orthogonal to this vector.
Returns the vector
if
, or
otherwise, where
is this vector.
| DVector ogdf::DVector::operator-- | ( | ) | const |
Returns a vector that is orthogonal to this vector.
Returns the vector
if
, or
otherwise, where
is this vector.