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()
constexprAngle() =default;
Angle()
constexprAngle([Radians](/reference/Types/radians)value);
Angle()
constexprAngle(glm::vec2direction);
Constructs the angle that direction makes with the positive x axis. 
direction does not need to be normalized. 
as_turns()
floatas_turns() const;
as_radians()
floatas_radians() const;
as_degrees()
floatas_degrees() const;
value
Radians value {};
Updated on 2024 October 24