#include <Momentum.h>
|
| Momentum () |
| It creates a new empty momentum.
|
|
| Momentum (int n) |
| It creates a new empty n-dimensional momentum.
|
|
| Momentum (vector< double > p) |
| It creates a momentum whit the values of the vector supplied.
|
|
int | getDim () |
| It suplies the dimension of the momentum.
|
|
void | setDim (int n) |
| It modifies the dimension of the momentum.
|
|
double | getPi (int i) |
| It retrieves the i coordinate of the momentum.
|
|
void | setPi (int i, double pi) |
| It modifies the value of the i coordinate.
|
|
| ~Momentum () |
| It destroys the momentum object.
|
|
It creates a new empty momentum.
Momentum::Momentum |
( |
int |
n | ) |
|
It creates a new empty n-dimensional momentum.
Momentum::Momentum |
( |
vector< double > |
p | ) |
|
It creates a momentum whit the values of the vector supplied.
- Parameters
-
It destroys the momentum object.
It suplies the dimension of the momentum.
- Returns
- the dimension of the momentum
double Momentum::getPi |
( |
int |
i | ) |
|
It retrieves the i coordinate of the momentum.
- Returns
- i coordinate of the momentum
void Momentum::setDim |
( |
int |
n | ) |
|
It modifies the dimension of the momentum.
- Parameters
-
n | the new dimension of the momentum |
void Momentum::setPi |
( |
int |
i, |
|
|
double |
pi |
|
) |
| |
It modifies the value of the i coordinate.
- Parameters
-
i | modified coordinate |
pi | new value for the coordinate |
The documentation for this class was generated from the following files: