Public Member Functions | |
| QGeomVector () | |
| constructor | |
| QGeomVector (double x, double y, double z) | |
| constructor with coordinates | |
| virtual | ~QGeomVector () |
| destructor | |
| double | GetX () const |
| get X component of the vector | |
| double | GetY () const |
| get Y component of the vector | |
| double | GetZ () const |
| get Z component of the vector | |
| double | GetDistance (const QGeomVector &other) const |
| get distance between 2 geometric vectors | |
| double | GetLength () const |
| get the length of the vector | |
| QGeomVector | operator+ (const QGeomVector &other) const |
| operator +: sum of 2 geometrical vectors | |
| QGeomVector | operator- (const QGeomVector &other) const |
| operator -: difference between 2 geometrical vectors | |
Private Attributes | |
| double | fX |
| double | fY |
| double | fZ |
| double QGeomVector::GetDistance | ( | const QGeomVector & | other | ) | const |
get distance between 2 geometric vectors
distance is evaluated as: ((*this) - other).GetLength();
References GetLength().
Referenced by QPositionFilter::GetDistance(), and MCoincidenceTester::GetMinimumSumOfDistances().
1.5.6