6#include "../datatypes/mat3x3.hpp"
7#include "../result.hpp"
40 TransformMat3x3(std::array<float, 9> flat_columns_) : matrix(flat_columns_) {}
43 matrix = flat_columns_;
59 struct Loggable<components::TransformMat3x3> {
60 static constexpr const char Name[] =
"rerun.components.TransformMat3x3";
63 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
64 return Loggable<rerun::datatypes::Mat3x3>::arrow_datatype();
68 static Result<std::shared_ptr<arrow::Array>> to_arrow(
69 const components::TransformMat3x3* instances,
size_t num_instances
71 if (num_instances == 0) {
72 return Loggable<rerun::datatypes::Mat3x3>::to_arrow(
nullptr, 0);
73 }
else if (instances ==
nullptr) {
75 ErrorCode::UnexpectedNullArgument,
76 "Passed array instances is null when num_elements> 0."
79 return Loggable<rerun::datatypes::Mat3x3>::to_arrow(
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
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:22
Datatype: A 3x3 Matrix.
Definition mat3x3.hpp:31