6#include "../rerun_sdk_export.hpp"
7#include "../result.hpp"
17 class FixedSizeListBuilder;
36 static const Mat3x3 IDENTITY;
37 static const Mat3x3 INVALID;
54 explicit Mat3x3(
const float* elements)
74 Mat3x3& operator=(std::array<float, 9> flat_columns_) {
87 struct Loggable<datatypes::Mat3x3> {
88 static constexpr std::string_view ComponentType =
"rerun.datatypes.Mat3x3";
91 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
94 static Result<std::shared_ptr<arrow::Array>> to_arrow(
95 const datatypes::Mat3x3* instances,
size_t num_instances
100 arrow::FixedSizeListBuilder* builder,
const datatypes::Mat3x3* elements,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:99
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:82
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
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:40
Mat3x3(const float *elements)
Construct a new 3x3 matrix from a pointer to 9 floats (in column major order).
Definition mat3x3.hpp:54
Datatype: A vector in 3D space.
Definition vec3d.hpp:20