|
| 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 *b) |
| 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 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 |