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