6#include "../result.hpp"
16 class FixedSizeListBuilder;
37 static const Mat3x3 IDENTITY;
54 explicit Mat3x3(
const float* elements)
72 Mat3x3& operator=(std::array<float, 9> flat_columns_) {
85 struct Loggable<datatypes::Mat3x3> {
86 static constexpr const char Name[] =
"rerun.datatypes.Mat3x3";
89 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
93 arrow::FixedSizeListBuilder* builder,
const datatypes::Mat3x3* elements,
98 static Result<std::shared_ptr<arrow::Array>> to_arrow(
99 const datatypes::Mat3x3* 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
std::array< float, 9 > flat_columns
Flat list of matrix coefficients in column-major order.
Definition mat3x3.hpp:32
Mat3x3(const Vec3D(&columns)[3])
Creates a new 3x3 matrix from 3 columns of 3 elements each.
Definition mat3x3.hpp:40
Mat3x3(const float *elements)
Construct a new 3x3 matrix from a pointer to 9 floats (in row major order).
Definition mat3x3.hpp:54
Datatype: A vector in 3D space.
Definition vec3d.hpp:20