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)");.
|
Four-dimensional point, often used with homogeneous coordinates.