Skip to main content

p6::Angle

Inherits from op::Addable< Angle >, op::Subtractable< Angle >, op::Negatable< Angle >, op::Scalable< Angle >

Summary

Name
constexprAngle() =default
constexprAngle([Radians](/reference/Types/radians) value)
constexprAngle(glm::vec2 direction)
Constructs the angle that direction makes with the positive x axis.
floatas_turns() const
floatas_radians() const
floatas_degrees() const
Radiansvalue

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