#include <Position.h>
|
| Position () |
| It creates a new empty position.
|
|
| Position (int n) |
| It creates a new empty n-dimensional position.
|
|
| Position (vector< double > q) |
| It creates a position whit the values of the vector supplied.
|
|
int | getDim () |
| It suplies the dimension of the position.
|
|
void | setDim (int n) |
| It modifies the dimension of the position.
|
|
double | getQi (int i) |
| It retrieves the i coordinate of the position.
|
|
void | setQi (int i, double qi) |
| It modifies the value of the i coordinate.
|
|
double | distance (Position q) |
| It calculates the distance from itself to the position r.
|
|
| ~Position () |
| It destroys the position object.
|
|
It creates a new empty position.
Position::Position |
( |
int |
n | ) |
|
It creates a new empty n-dimensional position.
Position::Position |
( |
vector< double > |
q | ) |
|
It creates a position whit the values of the vector supplied.
- Parameters
-
It destroys the position object.
It calculates the distance from itself to the position r.
- Parameters
-
It suplies the dimension of the position.
- Returns
- the dimension of the position
double Position::getQi |
( |
int |
i | ) |
|
It retrieves the i coordinate of the position.
- Returns
- i coordinate of the position
void Position::setDim |
( |
int |
n | ) |
|
It modifies the dimension of the position.
- Parameters
-
n | the new dimension of the position |
void Position::setQi |
( |
int |
i, |
|
|
double |
qi |
|
) |
| |
It modifies the value of the i coordinate.
- Parameters
-
i | modified coordinate |
qi | new value for the coordinate |
The documentation for this class was generated from the following files: