6#include "../component_descriptor.hpp"
7#include "../result.hpp"
20 using FloatBuilder = NumericBuilder<FloatType>;
43 angle.
angle_radians = degrees_ * (3.14159265358979323846264338327950288f / 180.f);
60 struct Loggable<datatypes::Angle> {
61 static constexpr ComponentDescriptor Descriptor =
"rerun.datatypes.Angle";
64 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
67 static Result<std::shared_ptr<arrow::Array>> to_arrow(
68 const datatypes::Angle* instances,
size_t num_instances
73 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:83
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Datatype: Angle in radians.
Definition angle.hpp:25
static Angle degrees(float degrees_)
New angle in degrees.
Definition angle.hpp:40
float angle_radians
Angle in radians. One turn is equal to 2π (or τ) radians.
Definition angle.hpp:27
static Angle radians(float radians_)
New angle in radians.
Definition angle.hpp:31