6#include "../result.hpp"
16 class FixedSizeListBuilder;
38 static const Mat4x4 IDENTITY;
62 explicit Mat4x4(
const float* elements)
87 Mat4x4& operator=(std::array<float, 16> flat_columns_) {
100 struct Loggable<datatypes::Mat4x4> {
101 static constexpr const char Name[] =
"rerun.datatypes.Mat4x4";
104 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
108 arrow::FixedSizeListBuilder* builder,
const datatypes::Mat4x4* elements,
113 static Result<std::shared_ptr<arrow::Array>> to_arrow(
114 const datatypes::Mat4x4* 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 4x4 Matrix.
Definition mat4x4.hpp:31
std::array< float, 16 > flat_columns
Flat list of matrix coefficients in column-major order.
Definition mat4x4.hpp:33
Mat4x4(const Vec4D(&columns)[4])
Creates a new 4x4 matrix from 3 columns of 4 elements each.
Definition mat4x4.hpp:41
Mat4x4(const float *elements)
Construct a new 4x4 matrix from a pointer to 16 floats (in row major order).
Definition mat4x4.hpp:62
Datatype: A vector in 4D space.
Definition vec4d.hpp:20