Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::datatypes::TranslationAndMat3x3 Struct Reference

Datatype: Representation of an affine transform via a 3x3 affine matrix paired with a translation. More...

#include <rerun/datatypes/translation_and_mat3x3.hpp>

Public Member Functions

 TranslationAndMat3x3 (const std::optional< Vec3D > &translation_, const std::optional< Mat3x3 > &mat3x3_, bool from_parent_)
 Creates a new 3D transform from translation/matrix.
 
 TranslationAndMat3x3 (const Mat3x3 &mat3x3_, bool from_parent_=false)
 From rotation only.
 
 TranslationAndMat3x3 (const Vec3D &translation_, bool from_parent_=false)
 From translation only.
 

Public Attributes

std::optional< rerun::datatypes::Vec3Dtranslation
 3D translation, applied after the matrix.
 
std::optional< rerun::datatypes::Mat3x3mat3x3
 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.
 

Static Public Attributes

static const TranslationAndMat3x3 IDENTITY
 Identity transformation.
 

Detailed Description

Datatype: Representation of an affine transform via a 3x3 affine matrix paired with a translation.

First applies the matrix, then the translation.

Constructor & Destructor Documentation

◆ 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.

Member Data Documentation

◆ 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

const TranslationAndMat3x3 rerun::datatypes::TranslationAndMat3x3::IDENTITY
static

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: