p6::Angle
Inherits from op::Addable< Angle >, op::Subtractable< Angle >, op::Negatable< Angle >, op::Scalable< Angle >
Summary
Name | |
---|---|
constexpr | Angle() =default |
constexpr | Angle([Radians](/reference/Types/radians) value) |
constexpr | Angle(glm::vec2 direction)Constructs the angle that direction makes with the positive x axis. |
float | as_turns() const |
float | as_radians() const |
float | as_degrees() const |
Radians | value |
Details
Angle()
constexpr
Angle() =default;
Angle()
constexpr
Angle([Radians](/reference/Types/radians)
value);
Angle()
constexpr
Angle(glm::vec2
direction);
Constructs the angle that direction
makes with the positive x axis.
direction
does not need to be normalized.
as_turns()
float
as_turns() const;
as_radians()
float
as_radians() const;
as_degrees()
float
as_degrees() const;
value
Radians value {};
Updated on 2024 October 24