6#include "../result.hpp"
15 class FixedSizeListBuilder;
21 std::array<int32_t, 3> xyz;
25 IVec3D(int32_t x, int32_t y, int32_t z) : xyz{x, y, z} {}
28 explicit IVec3D(
const int32_t* xyz_) : xyz{xyz_[0], xyz_[1], xyz_[2]} {}
47 IVec3D(std::array<int32_t, 3> xyz_) : xyz(xyz_) {}
49 IVec3D& operator=(std::array<int32_t, 3> xyz_) {
62 struct Loggable<datatypes::IVec3D> {
63 static constexpr std::string_view ComponentType =
"rerun.datatypes.IVec3D";
66 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
69 static Result<std::shared_ptr<arrow::Array>> to_arrow(
70 const datatypes::IVec3D* instances,
size_t num_instances
75 arrow::FixedSizeListBuilder* builder,
const datatypes::IVec3D* elements,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:93
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Datatype: An int32 vector in 3D space.
Definition ivec3d.hpp:20
IVec3D(const int32_t *xyz_)
Construct IVec3D from x/y/z int32_t pointer.
Definition ivec3d.hpp:28
IVec3D(int32_t x, int32_t y, int32_t z)
Construct IVec3D from x/y/z values.
Definition ivec3d.hpp:25