6#include "../result.hpp"
19 using FloatBuilder = NumericBuilder<FloatType>;
42 angle.
angle_radians = degrees_ * (3.14159265358979323846264338327950288f / 180.f);
59 struct Loggable<datatypes::Angle> {
60 static constexpr const char Name[] =
"rerun.datatypes.Angle";
63 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
66 static Result<std::shared_ptr<arrow::Array>> to_arrow(
67 const datatypes::Angle* instances,
size_t num_instances
72 arrow::FloatBuilder* builder,
const datatypes::Angle* elements,
size_t num_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: Angle in radians.
Definition angle.hpp:24
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
static Angle radians(float radians_)
New angle in radians.
Definition angle.hpp:30