6#include "../datatypes/mat3x3.hpp"
7#include "../result.hpp"
45 TransformMat3x3(std::array<float, 9> flat_columns_) : matrix(flat_columns_) {}
48 matrix = flat_columns_;
64 struct Loggable<components::TransformMat3x3> {
65 static constexpr std::string_view ComponentType =
"rerun.components.TransformMat3x3";
68 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
69 return Loggable<rerun::datatypes::Mat3x3>::arrow_datatype();
73 static Result<std::shared_ptr<arrow::Array>> to_arrow(
74 const components::TransformMat3x3* instances,
size_t num_instances
76 if (num_instances == 0) {
77 return Loggable<rerun::datatypes::Mat3x3>::to_arrow(
nullptr, 0);
78 }
else if (instances ==
nullptr) {
80 ErrorCode::UnexpectedNullArgument,
81 "Passed array instances is null when num_elements> 0."
84 return Loggable<rerun::datatypes::Mat3x3>::to_arrow(
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:99
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:31
Datatype: A vector in 3D space.
Definition vec3d.hpp:20