6#include "../result.hpp"
19 using FloatBuilder = NumericBuilder<FloatType>;
42 angle.
angle_radians = degrees_ * (3.14159265358979323846264338327950288f / 180.f);
59 struct Loggable<encodings::Angle> {
60 static constexpr std::string_view ComponentType =
"rerun.encodings.Angle";
63 static const std::shared_ptr<arrow::DataType>& arrow_data_type();
66 static Result<std::shared_ptr<arrow::Array>> to_arrow(
67 const encodings::Angle* instances,
size_t num_instances
72 arrow::FloatBuilder* builder,
const encodings::Angle* elements,
size_t num_elements
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
All built-in encodings. See Types in the Rerun manual.
Definition rerun.hpp:96
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
Encoding: Angle in radians.
Definition angle.hpp:24
static Angle radians(float radians_)
New angle in radians.
Definition angle.hpp:30
static Angle degrees(float degrees_)
New angle in degrees.
Definition angle.hpp:39
float angle_radians
Angle in radians. One turn is equal to 2π (or τ) radians.
Definition angle.hpp:26