Class representing a translation for the positional tracking module. More...
Functions | |
| Translation () | |
| Default constructor. More... | |
| Translation (const Translation &translation) | |
| Copy constructor (deep copy). More... | |
| Translation (float t1, float t2, float t3) | |
| Constructor. More... | |
| Translation (float3 in) | |
| Constructor from an sl::float3. More... | |
| Translation | operator* (const Orientation &mat) const |
| Multiplication operator by an Orientation. More... | |
| void | normalize () |
| Normalizes the current sl::Translation. More... | |
| float & | operator() (int x) |
| Gets the value at specific position in the sl::Translation. More... | |
| _FCT_CPU_GPU_ int | size () const |
| Return the size of the sl::Vector3. More... | |
| _FCT_CPU_GPU_ const float * | ptr () const |
| Returns a pointer of the first component. More... | |
| _FCT_CPU_GPU_ Vector3< float > & | setValues (const float *vals) |
| Sets the components of the sl::Vector3 to the values of the argument. More... | |
| _FCT_CPU_GPU_ float & | operator[] (const unsigned int i) |
| Returns the i-th component. More... | |
| _FCT_CPU_GPU_ const float & | operator[] (const unsigned int i) const |
| Returns the i-th component. More... | |
| _FCT_CPU_GPU_ void | operator[] (const unsigned int i) &&=delete |
| Prevent operator from being called by temporaries (such as rvalue) More... | |
| _FCT_CPU_GPU_ float | norm () |
| Returns the norm of the sl::Vector3. More... | |
| _FCT_CPU_GPU_ float | square () |
| Returns the squared norm of the sl::Vector3. More... | |
| _FCT_CPU_GPU_ float | sum () |
| Returns the sum of the components of the sl::Vector3. More... | |
Static Functions | |
| static Translation | normalize (const Translation &tr) |
| Gets the normalized sl::Translation of a given sl::Translation. More... | |
| static _FCT_CPU_GPU_ float | dot (const Vector3< float > &a, const Vector3< float > &b) |
| Returns the dot product of two sl::Vector3. More... | |
| static _FCT_CPU_GPU_ float | distance (const Vector3< float > &a, const Vector3< float > &b) |
| Returns the distance between two sl::Vector3. More... | |
| static _FCT_CPU_GPU_ Vector3< float > | cross (const Vector3< float > &a, const Vector3< float > &b) |
| Returns the cross product between two sl::Vector3. More... | |
Class representing a translation for the positional tracking module.
sl::Translation is a vector as [tx, ty, tz].
You can access the data with the 't' ptr or by element name as : tx, ty, tz <-> | 0 1 2 |
| Translation | ( | ) |
Default constructor.
Creates a null translation.
| Translation | ( | const Translation & | translation | ) |
Copy constructor (deep copy).
| translation | : sl::Translation to copy. |
| Translation | ( | float | t1, |
| float | t2, | ||
| float | t3 | ||
| ) |
Constructor.
| t1 | : x component of the translation. |
| t2 | : y component of the translation. |
| t3 | : z component of the translation. |
| Translation | ( | float3 | in | ) |
Constructor from an sl::float3.
| in | : sl::float3 to copy. |
| Translation operator* | ( | const Orientation & | mat | ) | const |
Multiplication operator by an Orientation.
| mat | : Orientation. |
| void normalize | ( | ) |
Normalizes the current sl::Translation.
|
static |
Gets the normalized sl::Translation of a given sl::Translation.
| tr | : sl::Translation to be get the normalized translation from. |
| float& operator() | ( | int | x | ) |
Gets the value at specific position in the sl::Translation.
| x | : Position of the value. |
|
inlineinherited |
Return the size of the sl::Vector3.
|
inlineinherited |
Returns a pointer of the first component.
|
inlineinherited |
Sets the components of the sl::Vector3 to the values of the argument.
|
inlineinherited |
Returns the i-th component.
|
inlineinherited |
Returns the i-th component.
|
deleteinherited |
Prevent operator from being called by temporaries (such as rvalue)
|
inlineinherited |
Returns the norm of the sl::Vector3.
|
inlineinherited |
Returns the squared norm of the sl::Vector3.
|
inlineinherited |
Returns the sum of the components of the sl::Vector3.
|
inlinestaticinherited |
Returns the dot product of two sl::Vector3.
|
inlinestaticinherited |
Returns the distance between two sl::Vector3.
|
inlinestaticinherited |
Returns the cross product between two sl::Vector3.