Vector basis object.
More...
|
triple | a |
| Vector 1.
|
|
triple | b |
| Vector 2.
|
|
triple | c |
| Vector 3.
|
|
Label | a_label = Label("a",1) |
| Label for vector a.
|
|
Label | b_label = Label("b",1) |
| Label for vector b.
|
|
Label | c_label = Label("c",1) |
| Label for vector c.
|
|
triple | origin = (0,0,0) |
| Origin point for drawing.
|
|
Vector basis object.
This structure is used to define a Basis from 3 vectors. These vectors needn't be orthogonal.
triple Basis::getCartesian |
( |
triple |
coordinates | ) |
|
|
inline |
Get usual cartesian coordinates from a vector in the basis coordinates.
- Parameters
-
coordinates | Generic vector expressed in the coordinates of the basis. |
triple Basis::getCoordinates |
( |
triple |
coordinates | ) |
|
|
inline |
Get usual cartesian coordinates from a vector in the basis coordinates.
- Parameters
-
coordinates | of a vector expressed in cartesian (canonical coordinates). |
- Returns
- Coordinates of the vector expressed in the basis.
bool Basis::isComplete |
( |
| ) |
|
|
inline |
Returns true if the basis spans \(\mathbf R^3\).
void Basis::normalise |
( |
| ) |
|
|
inline |
Normalise the basis
This function changes the basis vectors into unit vectors along the same direction
void Basis::operator init |
( |
triple |
a, |
|
|
triple |
b, |
|
|
triple |
c |
|
) |
| |
|
inline |
Constructor of the Basis structure.
- Parameters
-
a | The first vector |
b | The second vector |
c | The third vector |
The documentation for this struct was generated from the following file: