xvsdk  3.2.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
xv::TransformF Struct Reference

Represents atransformation (or pose) with translation and rotation matrix in float type. More...

#include <xv-types.h>

Public Member Functions

 TransformF (details::Transform_< float > &&o)
 
 TransformF (Vector3f const &t, Matrix3f const &r)
 
Transform_ & operator*= (Transform_ const &q)
 Composition operator for transformations.
 
Vector3< float > const & translation () const
 Get the translation part of the transformation. More...
 
void setTranslation (Vector3< float > const &v)
 Set the translation part of the transformation.
 
void setTranslation (floatconst *v)
 Set the translation part of the transformation using pointer to 3D array.
 
Matrix3< float > const & rotation () const
 Get the rotation matrix part of the transformation. More...
 
void setRotation (Matrix3< float > const &v)
 Get the rotation matrix part of the transformation.
 
void setRotation (floatconst *v)
 Set the rotation matrix (row major 3x3) part of the transformation using pointer to array of size 9.
 
float x () const
 X coordinate of the translation.
 
float y () const
 Y coordinate of the translation.
 
float z () const
 Z coordinate of the translation.
 
Transform_< float > inverse () const
 Compute the inverse transformation. More...
 

Static Public Member Functions

static Transform_ Identity ()
 

Protected Attributes

Vector3< float > m_translation
 
Matrix3< float > m_rotation
 

Detailed Description

Represents atransformation (or pose) with translation and rotation matrix in float type.

Member Function Documentation

Transform_<float > xv::details::Transform_< float >::inverse ( ) const
inherited

Compute the inverse transformation.

Returns
Return the inverse transformation
Matrix3<float > const& xv::details::Transform_< float >::rotation ( ) const
inlineinherited

Get the rotation matrix part of the transformation.

Returns
row major 3x3 matrix
Vector3<float > const& xv::details::Transform_< float >::translation ( ) const
inlineinherited

Get the translation part of the transformation.

Returns
[x,y,z] vector

The documentation for this struct was generated from the following file: