![]() |
VR-Link API Documentation for HLA 1.3
|
Four-dimensional point, often used with homogeneous coordinates. More...
Collaboration diagram for Dt4dPoint:Public Member Functions | |
| Dt4dPoint () | |
| Default constructor sets all values to zero. | |
| Dt4dPoint (const double &x, const double &y, const double &z, const double &w) | |
| Dt4dPoint (const Dt4dPoint &orig) | |
| virtual | ~Dt4dPoint () |
| Dt4dPoint & | operator= (const Dt4dPoint &rhs) |
| const double & | x () const |
| const double & | y () const |
| const double & | z () const |
| const double & | w () const |
| virtual void | set (const double &x, const double &y, const double &z, const double &w) |
| void | setX (const double &x) |
| void | setY (const double &y) |
| void | setZ (const double &z) |
| void | setW (const double &w) |
| void | setFromVector (const DtVector &vector) |
| Dt4dPoint( vector.x(), vector.y(), vector.z(), 1) | |
| void | setFrom3dPoint (const Dt3dPoint &point) |
| Dt4dPoint( point.x(), point.y(), point.z(), 1) | |
| virtual void | unhomogenize () |
| Divide every component by w. | |
| bool | operator== (const Dt4dPoint &rhs) const |
| bool | operator!= (const Dt4dPoint &rhs) const |
| Dt4dPoint | operator* (const double &rhs) const |
| Dt4dPoint & | operator*= (const double &rhs) |
| Dt4dPoint | operator+ (const Dt4dPoint &rhs) const |
| Dt4dPoint & | operator+= (const Dt4dPoint &rhs) |
| Dt4dPoint | operator- (const Dt4dPoint &rhs) const |
| Dt4dPoint & | operator-= (const Dt4dPoint &rhs) |
| const double & | operator[] (const int i) const |
| DtTHROW_NEW(DtException, "Invalid index (should be 0..3)");. | |
| double & | operator[] (const int i) |
| DtTHROW_NEW(DtException, "Invalid index (should be 0..3)");. | |
Protected Attributes | |
| double | myX |
| double | myY |
| double | myZ |
| double | myW |
Four-dimensional point, often used with homogeneous coordinates.
| Dt4dPoint::Dt4dPoint | ( | ) |
Default constructor sets all values to zero.
| Dt4dPoint::Dt4dPoint | ( | const double & | x, |
| const double & | y, | ||
| const double & | z, | ||
| const double & | w | ||
| ) |
| Dt4dPoint::Dt4dPoint | ( | const Dt4dPoint & | orig | ) |
|
virtual |
| bool Dt4dPoint::operator!= | ( | const Dt4dPoint & | rhs | ) | const |
| Dt4dPoint Dt4dPoint::operator* | ( | const double & | rhs | ) | const |
| Dt4dPoint& Dt4dPoint::operator*= | ( | const double & | rhs | ) |
| bool Dt4dPoint::operator== | ( | const Dt4dPoint & | rhs | ) | const |
| const double& Dt4dPoint::operator[] | ( | const int | i | ) | const |
DtTHROW_NEW(DtException, "Invalid index (should be 0..3)");.
| double& Dt4dPoint::operator[] | ( | const int | i | ) |
DtTHROW_NEW(DtException, "Invalid index (should be 0..3)");.
|
virtual |
| void Dt4dPoint::setFrom3dPoint | ( | const Dt3dPoint & | point | ) |
Dt4dPoint( point.x(), point.y(), point.z(), 1)
| void Dt4dPoint::setFromVector | ( | const DtVector & | vector | ) |
Dt4dPoint( vector.x(), vector.y(), vector.z(), 1)
| void Dt4dPoint::setW | ( | const double & | w | ) |
| void Dt4dPoint::setX | ( | const double & | x | ) |
| void Dt4dPoint::setY | ( | const double & | y | ) |
| void Dt4dPoint::setZ | ( | const double & | z | ) |
|
virtual |
Divide every component by w.
| const double& Dt4dPoint::w | ( | ) | const |
| const double& Dt4dPoint::x | ( | ) | const |
| const double& Dt4dPoint::y | ( | ) | const |
| const double& Dt4dPoint::z | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |