PARTONS/NumA++
|
Numerical Analysis C++ routines
|
Object representing a four-vector. More...
Public Member Functions | |
Vector4D () | |
Default constructor. More... | |
Vector4D (double x, double y, double z, double e) | |
Constructor. More... | |
~Vector4D () | |
Default destructor. More... | |
double | getE () const |
Energy/Time component. More... | |
void | setE (double e) |
Energy/Time component. More... | |
Public Member Functions inherited from NumA::Vector3D | |
Vector3D () | |
Default constructor. More... | |
Vector3D (double x, double y, double z) | |
Constructor. More... | |
~Vector3D () | |
Default destructor. More... | |
double | operator* (const Vector3D &rhs) const |
Scalar product. More... | |
double | getZ () const |
void | setZ (double z) |
std::string | toString () const |
Return a formatted characters string to display vector's values. More... | |
Public Member Functions inherited from NumA::Vector2D | |
Vector2D () | |
Default constructor. More... | |
Vector2D (double x, double y) | |
Constructor. More... | |
~Vector2D () | |
Default destructor. More... | |
double | getX () const |
void | setX (double x) |
double | getY () const |
void | setY (double y) |
Vector2D | operator+ (Vector2D const &rhs) |
Addition of two vectors. More... | |
void | operator+= (Vector2D const &rhs) |
Addition with a scalar. More... | |
Vector2D | operator- (Vector2D const &rhs) |
Subtraction of two vectors. More... | |
void | operator-= (Vector2D const &rhs) |
Subtraction with a scalar. More... | |
Private Attributes | |
double | m_e |
Energy/Time component. More... | |
Object representing a four-vector.
NumA::Vector4D::Vector4D | ( | ) |
Default constructor.
NumA::Vector4D::Vector4D | ( | double | x, |
double | y, | ||
double | z, | ||
double | e | ||
) |
Constructor.
x | x-coordinate. |
y | y-coordinate. |
z | z-coordinate. |
e | Energy/Time component. |
NumA::Vector4D::~Vector4D | ( | ) |
Default destructor.
double NumA::Vector4D::getE | ( | ) | const |
Energy/Time component.
void NumA::Vector4D::setE | ( | double | e | ) |
Energy/Time component.
|
private |
Energy/Time component.