#include <mlVector6.h>

Public Types | |
| typedef DT | ComponentType |
| A typedef to "export" the type of components. | |
Public Member Functions | |
constructors | |
| Tvec6 (const DT value=0) | |
| Default and value constructor. | |
| Tvec6 (const Tvec6< DT > &v) | |
| Copy constructor from Tvec6. | |
| Tvec6 (const FloatingPointVector< DT, 6 > &v) | |
| Copy constructor from FloatingPointVector. | |
| Tvec6 (const DT x, const DT y, const DT z, const DT c, const DT t, const DT u) | |
| Build the vector from the scalars x, y, z, c, t and u to the components 0 to 5, respectively. | |
| Tvec6 (const Tvec2< DT > &v, const DT z, const DT c, const DT t, const DT u) | |
| Cast Tvec2 to Tvec6. Last components are set to z, c, t and u whose defaults are 0. | |
| Tvec6 (const Tvec3< DT > &v, const DT c, const DT t, const DT u) | |
| Cast Tvec3 to Tvec6. Last components are set to c, t and u whose defaults are 0. | |
| Tvec6 (const Tvec4< DT > &v, const DT t, const DT u) | |
| Cast Tvec4 to Tvec6. Last components are set to t and u whose defaults are 0. | |
Other operators and methods | |
| void | assign (const DT x, const DT y, const DT z, const DT c, const DT t, const DT u) |
| Set all components to the passed values. | |
| Tvec6< DT > & | operator+= (const Tvec2< DT > &v) |
| Incrementation by a Tvec2. | |
| Tvec6< DT > & | operator+= (const Tvec3< DT > &v) |
| Incrementation by a Tvec3. | |
| Tvec6< DT > & | operator+= (const Tvec4< DT > &v) |
| Incrementation by a Tvec4. | |
| const Tvec3< DT > | getVec3 () const |
| Return a Tvec3 from components 0,1, and 2. | |
| const Tvec4< DT > | getVec4 () const |
| Return a Tvec4 from components 0, 1, 2, and 3. | |
A six dimensional vector class.
Definition at line 53 of file mlVector6.h.
| typedef DT ml::Tvec6< DT >::ComponentType |
A typedef to "export" the type of components.
Reimplemented from ml::FloatingPointVector< DT, 6 >.
Definition at line 57 of file mlVector6.h.
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 65 of file mlVector6.h.
| ml::Tvec6< DT >::Tvec6 | ( | const FloatingPointVector< DT, 6 > & | v | ) | [inline] |
Copy constructor from FloatingPointVector.
This allows the usage of SclarVectorTemplate objects of the same DT in operators using the Tvec6, because the FloatingPointVector objects can implicitly be cast.
Definition at line 79 of file mlVector6.h.
| ml::Tvec6< DT >::Tvec6 | ( | const DT | x, | |
| const DT | y, | |||
| const DT | z, | |||
| const DT | c, | |||
| const DT | t, | |||
| const DT | u | |||
| ) | [inline] |
Build the vector from the scalars x, y, z, c, t and u to the components 0 to 5, respectively.
Definition at line 86 of file mlVector6.h.
| ml::Tvec6< DT >::Tvec6 | ( | const Tvec2< DT > & | v, | |
| const DT | z, | |||
| const DT | c, | |||
| const DT | t, | |||
| const DT | u | |||
| ) | [inline] |
Cast Tvec2 to Tvec6. Last components are set to z, c, t and u whose defaults are 0.
Definition at line 99 of file mlVector6.h.
| ml::Tvec6< DT >::Tvec6 | ( | const Tvec3< DT > & | v, | |
| const DT | c, | |||
| const DT | t, | |||
| const DT | u | |||
| ) | [inline] |
Cast Tvec3 to Tvec6. Last components are set to c, t and u whose defaults are 0.
Definition at line 112 of file mlVector6.h.
| ml::Tvec6< DT >::Tvec6 | ( | const Tvec4< DT > & | v, | |
| const DT | t, | |||
| const DT | u | |||
| ) | [inline] |
Cast Tvec4 to Tvec6. Last components are set to t and u whose defaults are 0.
Definition at line 125 of file mlVector6.h.
| void ml::Tvec6< DT >::assign | ( | const DT | x, | |
| const DT | y, | |||
| const DT | z, | |||
| const DT | c, | |||
| const DT | t, | |||
| const DT | u | |||
| ) | [inline] |
1.5.8