6#include "../component_descriptor.hpp"
7#include "../datatypes/mat3x3.hpp"
8#include "../result.hpp"
46 TransformMat3x3(std::array<float, 9> flat_columns_) : matrix(flat_columns_) {}
49 matrix = flat_columns_;
65 struct Loggable<components::TransformMat3x3> {
66 static constexpr ComponentDescriptor Descriptor =
"rerun.components.TransformMat3x3";
69 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
70 return Loggable<rerun::datatypes::Mat3x3>::arrow_datatype();
74 static Result<std::shared_ptr<arrow::Array>> to_arrow(
75 const components::TransformMat3x3* instances,
size_t num_instances
77 if (num_instances == 0) {
78 return Loggable<rerun::datatypes::Mat3x3>::to_arrow(
nullptr, 0);
79 }
else if (instances ==
nullptr) {
81 ErrorCode::UnexpectedNullArgument,
82 "Passed array instances is null when num_elements> 0."
85 return Loggable<rerun::datatypes::Mat3x3>::to_arrow(
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:96
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:79
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:32
Datatype: A vector in 3D space.
Definition vec3d.hpp:21