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