Datatype: Representation of an affine transform via a 3x3 affine matrix paired with a translation.
More...
#include <rerun/datatypes/translation_and_mat3x3.hpp>
|
std::optional< rerun::datatypes::Vec3D > | translation |
| 3D translation, applied after the matrix.
|
|
std::optional< rerun::datatypes::Mat3x3 > | mat3x3 |
| 3x3 matrix for scale, rotation & shear.
|
|
bool | from_parent |
| If true, this transform is from the parent space to the space where the transform was logged.
|
|
Datatype: Representation of an affine transform via a 3x3 affine matrix paired with a translation.
First applies the matrix, then the translation.
◆ TranslationAndMat3x3() [1/3]
rerun::datatypes::TranslationAndMat3x3::TranslationAndMat3x3 |
( |
const std::optional< Vec3D > & |
translation_, |
|
|
const std::optional< Mat3x3 > & |
mat3x3_, |
|
|
bool |
from_parent_ |
|
) |
| |
|
inline |
Creates a new 3D transform from translation/matrix.
- Parameters
-
translation_ | 3D translation, applied after the matrix. |
mat3x3_ | 3x3 matrix for scale, rotation & shear. |
from_parent_ | If true, this transform is from the parent space to the space where the transform was logged. |
If false (default), the transform maps from this space to its parent, i.e. the translation is the position in the parent space.
◆ TranslationAndMat3x3() [2/3]
rerun::datatypes::TranslationAndMat3x3::TranslationAndMat3x3 |
( |
const Mat3x3 & |
mat3x3_, |
|
|
bool |
from_parent_ = false |
|
) |
| |
|
inline |
From rotation only.
- Parameters
-
mat3x3_ | 3x3 matrix for scale, rotation & shear. |
from_parent_ | If true, this transform is from the parent space to the space where the transform was logged. |
If false (default), the transform maps from this space to its parent, i.e. the translation is the position in the parent space.
◆ TranslationAndMat3x3() [3/3]
rerun::datatypes::TranslationAndMat3x3::TranslationAndMat3x3 |
( |
const Vec3D & |
translation_, |
|
|
bool |
from_parent_ = false |
|
) |
| |
|
inline |
From translation only.
- Parameters
-
translation_ | 3D translation, applied after the matrix. |
from_parent_ | If true, this transform is from the parent space to the space where the transform was logged. |
If false (default), the transform maps from this space to its parent, i.e. the translation is the position in the parent space.
◆ from_parent
bool rerun::datatypes::TranslationAndMat3x3::from_parent |
If true, this transform is from the parent space to the space where the transform was logged.
If false (default), the transform maps from this space to its parent, i.e. the translation is the position in the parent space.
◆ IDENTITY
Identity transformation.
Applying this transform does not alter an entity's transformation. It has all optional fields set to std::nullopt
.
The documentation for this struct was generated from the following file: