6#include "../rerun_sdk_export.hpp"
7#include "../result.hpp"
17 class FixedSizeListBuilder;
36 static const Mat3x3 IDENTITY;
53 explicit Mat3x3(
const float* elements)
73 Mat3x3& operator=(std::array<float, 9> flat_columns_) {
86 struct Loggable<datatypes::Mat3x3> {
87 static constexpr const char Name[] =
"rerun.datatypes.Mat3x3";
90 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
93 static Result<std::shared_ptr<arrow::Array>> to_arrow(
94 const datatypes::Mat3x3* instances,
size_t num_instances
99 arrow::FixedSizeListBuilder* builder,
const datatypes::Mat3x3* elements,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:91
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:78
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Datatype: A 3x3 Matrix.
Definition mat3x3.hpp:31
std::array< float, 9 > flat_columns
Flat list of matrix coefficients in column-major order.
Definition mat3x3.hpp:33
Mat3x3(const Vec3D(&columns)[3])
Creates a new 3x3 matrix from 3 columns of 3 elements each.
Definition mat3x3.hpp:39
Mat3x3(const float *elements)
Construct a new 3x3 matrix from a pointer to 9 floats (in column major order).
Definition mat3x3.hpp:53
Datatype: A vector in 3D space.
Definition vec3d.hpp:20