ML Reference
|
An ten dimensional vector class for floating point types. More...
#include <mlVector10.h>
Public Types | |
typedef FloatingPointVector < DT, 10 > | Superclass |
A typedef as a shorthand for the base class. | |
typedef DT | ComponentType |
A typedef to "export" the type of components. | |
Public Member Functions | |
constructors | |
Tvec10 (const DT value=0) | |
Default and value constructor. | |
Tvec10 (const Tvec10< DT > &v) | |
Copy constructor from Tvec10. | |
Tvec10 (const Superclass &v) | |
Copy constructor from FloatingPointVector. | |
Tvec10 (const DT x, const DT y, const DT z, const DT c, const DT t, const DT u, const DT v, const DT w, const DT a, const DT b) | |
Build the vector from the scalars x, y, z, c, t, u, v and w to the components 0 to 9, respectively. | |
Other operators and methods | |
void | assign (const DT x, const DT y, const DT z, const DT c, const DT t, const DT u, const DT v, const DT w, const DT a, const DT b) |
Set all components to the passed values. |
An ten dimensional vector class for floating point types.
A ten dimensional vector class.
Definition at line 33 of file mlVector10.h.
typedef DT ml::Tvec10< DT >::ComponentType |
A typedef to "export" the type of components.
Reimplemented from ml::FloatingPointVector< DT, 10 >.
Definition at line 40 of file mlVector10.h.
typedef FloatingPointVector<DT,10> ml::Tvec10< DT >::Superclass |
A typedef as a shorthand for the base class.
Definition at line 37 of file mlVector10.h.
ml::Tvec10< DT >::Tvec10 | ( | const DT | value = 0 | ) | [inline, explicit] |
Default and value constructor.
Set all entries to a user given value. value is the init value for all entries. 0 is the default value.
Definition at line 48 of file mlVector10.h.
ml::Tvec10< DT >::Tvec10 | ( | const Tvec10< DT > & | v | ) | [inline] |
Copy constructor from Tvec10.
Definition at line 54 of file mlVector10.h.
ml::Tvec10< DT >::Tvec10 | ( | const Superclass & | v | ) | [inline] |
Copy constructor from FloatingPointVector.
This allows the usage of SclarVectorTemplate objects of the same DT in operators using the Tvec10, because the FloatingPointVector objects can implicitly be cast.
Definition at line 62 of file mlVector10.h.
ml::Tvec10< DT >::Tvec10 | ( | const DT | x, |
const DT | y, | ||
const DT | z, | ||
const DT | c, | ||
const DT | t, | ||
const DT | u, | ||
const DT | v, | ||
const DT | w, | ||
const DT | a, | ||
const DT | b | ||
) | [inline] |
Build the vector from the scalars x, y, z, c, t, u, v and w to the components 0 to 9, respectively.
Definition at line 69 of file mlVector10.h.
void ml::Tvec10< DT >::assign | ( | const DT | x, |
const DT | y, | ||
const DT | z, | ||
const DT | c, | ||
const DT | t, | ||
const DT | u, | ||
const DT | v, | ||
const DT | w, | ||
const DT | a, | ||
const DT | b | ||
) | [inline] |
Set all components to the passed values.
Definition at line 84 of file mlVector10.h.