The Transform class supports rigid transforms with only translation and rotation and no scaling/shear. It can be used in combination with Vector3, Quaternion and Matrix3x3 linear algebra classes.
More...
#include <Transform.hpp>
The Transform class supports rigid transforms with only translation and rotation and no scaling/shear. It can be used in combination with Vector3, Quaternion and Matrix3x3 linear algebra classes.
◆ Transform() [1/4]
| tf2::Transform::Transform |
( |
| ) |
|
|
inline |
No initialization constructor.
◆ Transform() [2/4]
Constructor from Quaternion (optional Vector3 )
- Parameters
-
| q | Rotation from quaternion |
| c | Translation from Vector (default 0,0,0) |
◆ Transform() [3/4]
Constructor from Matrix3x3 (optional Vector3)
- Parameters
-
| b | Rotation from Matrix |
| c | Translation from Vector default (0,0,0) |
◆ Transform() [4/4]
◆ operator=()
◆ mult()
Set the current transform as the value of the product of two transforms.
- Parameters
-
◆ operator()()
Return the transform of the vector.
◆ operator*() [1/3]
Return the transform of the vector.
◆ operator*() [2/3]
◆ getBasis() [1/2]
Return the basis matrix for the rotation.
◆ getBasis() [2/2]
Return the basis matrix for the rotation.
◆ getOrigin() [1/2]
| Vector3 & tf2::Transform::getOrigin |
( |
| ) |
|
|
inline |
Return the origin vector translation.
◆ getOrigin() [2/2]
Return the origin vector translation.
◆ getRotation()
Return a quaternion representing the rotation.
◆ setFromOpenGLMatrix()
Set from an array.
- Parameters
-
| m | A pointer to a 15 element array (12 rotation(row major padded on the right by 1), and 3 translation |
◆ getOpenGLMatrix()
Fill an array representation.
- Parameters
-
| m | A pointer to a 15 element array (12 rotation(row major padded on the right by 1), and 3 translation |
◆ setOrigin()
Set the translational element.
- Parameters
-
| origin | The vector to set the translation to |
◆ invXform()
◆ setBasis()
◆ setRotation()
◆ setIdentity()
| void tf2::Transform::setIdentity |
( |
| ) |
|
|
inline |
Set this transformation to the identity.
◆ operator*=()
Multiply this Transform by another(this = this * another)
- Parameters
-
◆ inverse()
Return the inverse of this transform.
◆ inverseTimes()
Return the inverse of this transform times the other transform.
- Parameters
-
| t | The other transform return this.inverse() * the other |
◆ operator*() [3/3]
Return the product of this transform and the other.
◆ getIdentity()
Return an identity transform.
◆ serialize()
◆ serializeFloat()
◆ deSerialize()
◆ deSerializeDouble()
◆ deSerializeFloat()
The documentation for this class was generated from the following file: