moab
|
Public Member Functions | |
CartVect () | |
CartVect (double tx, double ty, double tz) | |
CartVect (const CartVect &other) | |
void | set (double tx, double ty, double tz) |
void | set (const double *c) |
double | x () const |
double | y () const |
double | z () const |
CartVect & | operator+= (const CartVect &other) |
CartVect & | operator-= (const CartVect &other) |
CartVect & | operator*= (const CartVect &other) |
double | lensqr () const |
double | len () const |
CartVect | operator~ () const |
CartVect & | operator*= (double a) |
CartVect & | operator/= (double a) |
Private Attributes | |
double | coords [3] |
Definition at line 30 of file measure.cpp.
CartVect::CartVect | ( | ) | [inline] |
Definition at line 36 of file measure.cpp.
{}
CartVect::CartVect | ( | double | tx, |
double | ty, | ||
double | tz | ||
) | [inline] |
Definition at line 38 of file measure.cpp.
{ set(tx,ty,tz); }
CartVect::CartVect | ( | const CartVect & | other | ) | [inline] |
Definition at line 40 of file measure.cpp.
{ set( other.coords); }
double CartVect::len | ( | ) | const [inline] |
Definition at line 134 of file measure.cpp.
{ return sqrt(lensqr()); }
double CartVect::lensqr | ( | ) | const [inline] |
Definition at line 131 of file measure.cpp.
{ return *this % *this; }
Definition at line 128 of file measure.cpp.
{ return *this = *this * other; }
CartVect& CartVect::operator*= | ( | double | a | ) | [inline] |
Definition at line 77 of file measure.cpp.
CartVect& CartVect::operator/= | ( | double | a | ) | [inline] |
Definition at line 85 of file measure.cpp.
CartVect CartVect::operator~ | ( | ) | const [inline] |
void CartVect::set | ( | double | tx, |
double | ty, | ||
double | tz | ||
) | [inline] |
Definition at line 42 of file measure.cpp.
void CartVect::set | ( | const double * | c | ) | [inline] |
Definition at line 45 of file measure.cpp.
double CartVect::x | ( | ) | const [inline] |
Definition at line 48 of file measure.cpp.
{ return coords[0]; }
double CartVect::y | ( | ) | const [inline] |
Definition at line 49 of file measure.cpp.
{ return coords[1]; }
double CartVect::z | ( | ) | const [inline] |
Definition at line 50 of file measure.cpp.
{ return coords[2]; }
double CartVect::coords[3] [private] |
Definition at line 32 of file measure.cpp.