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


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:43 2009 for CUORE Software by  doxygen 1.5.1