6#include "../result.hpp"
29 std::optional<rerun::datatypes::Mat3x3>
mat3x3;
52 const std::optional<Vec3D>& translation_,
const std::optional<Mat3x3>& mat3x3_,
82 struct Loggable<datatypes::TranslationAndMat3x3> {
83 static constexpr const char Name[] =
"rerun.datatypes.TranslationAndMat3x3";
86 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
90 arrow::StructBuilder* builder,
const datatypes::TranslationAndMat3x3* elements,
95 static Result<std::shared_ptr<arrow::Array>> to_arrow(
96 const datatypes::TranslationAndMat3x3* instances,
size_t num_instances
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:72
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Datatype: A 3x3 Matrix.
Definition mat3x3.hpp:30
Datatype: Representation of an affine transform via a 3x3 affine matrix paired with a translation.
Definition translation_and_mat3x3.hpp:24
std::optional< rerun::datatypes::Vec3D > translation
3D translation, applied after the matrix.
Definition translation_and_mat3x3.hpp:26
static const TranslationAndMat3x3 IDENTITY
Identity transformation.
Definition translation_and_mat3x3.hpp:44
std::optional< rerun::datatypes::Mat3x3 > mat3x3
3x3 matrix for scale, rotation & shear.
Definition translation_and_mat3x3.hpp:29
TranslationAndMat3x3(const Vec3D &translation_, bool from_parent_=false)
From translation only.
Definition translation_and_mat3x3.hpp:68
TranslationAndMat3x3(const std::optional< Vec3D > &translation_, const std::optional< Mat3x3 > &mat3x3_, bool from_parent_)
Creates a new 3D transform from translation/matrix.
Definition translation_and_mat3x3.hpp:51
TranslationAndMat3x3(const Mat3x3 &mat3x3_, bool from_parent_=false)
From rotation only.
Definition translation_and_mat3x3.hpp:61
bool from_parent
If true, this transform is from the parent space to the space where the transform was logged.
Definition translation_and_mat3x3.hpp:35
Datatype: A vector in 3D space.
Definition vec3d.hpp:20