QGeomVector Class Reference

List of all members.


Detailed Description

geometric 3D vector

Author:
Sergio Di Domizio

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

Member Function Documentation

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().


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

Generated on Tue Nov 16 10:50:06 2010 for CUORE Software by  doxygen 1.5.6