This class represents a three-vector. Operators are overloaded to provide for the familiar operations of vector addition, subtraction, scalar multiplication and division, and the dot product.
More...
#include <vector.hh>
|
double | operator[] (int i) const |
|
| Vector (double x_inp, double y_inp, double z_inp) |
|
| Vector (double *xarray) |
|
| Vector (double theta, double phi) |
|
Vector | RotateX (double angle) const |
|
Vector | RotateY (double angle) const |
|
Vector | RotateZ (double angle) const |
|
Vector | Cross (const Vector &vec) const |
|
double | Dot (const Vector &vec) const |
|
Vector | Rotate (double angle, const Vector &axis) const |
|
Vector | Zero () |
|
double | Mag2 () const |
|
double | Mag () const |
|
double | Angle (const Vector &vec) const |
|
Vector | ChangeCoord (const Vector &new_x_axis, const Vector &new_y_axis) const |
|
Vector | ChangeCoord (const Vector &new_z_axis) const |
|
Vector | Orthogonal () const |
|
Vector | Unit () const |
|
double | GetX () const |
|
double | GetY () const |
|
double | GetZ () const |
|
double | X () const |
|
double | Y () const |
|
double | Z () const |
|
double | Theta () const |
|
double | Phi () const |
|
void | Print () const |
|
void | SetX (double inp) |
|
void | SetY (double inp) |
|
void | SetZ (double inp) |
|
void | SetXYZ (double inpx, double inpy, double inpz) |
|
void | Reset (double x_inp, double y_inp, double z_inp) |
|
|
void | UpdateThetaPhi () const |
|
|
double | x |
|
double | y |
|
double | z |
|
double | theta |
|
double | phi |
|
bool | angles_need_updating |
|
This class represents a three-vector. Operators are overloaded to provide for the familiar operations of vector addition, subtraction, scalar multiplication and division, and the dot product.
Definition at line 27 of file vector.hh.
The documentation for this class was generated from the following files: