AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AAngleRadians Class Reference

Strong type used to store angle in radians. More...

#include <AUI/Util/AAngleRadians.h>

Public Member Functions

constexpr AAngleRadians (float radians) noexcept
 
constexpr float radians () const noexcept
 
constexpr float degrees () const noexcept
 
AAngleRadiansoperator+= (AAngleRadians rhs) noexcept
 
AAngleRadiansoperator-= (AAngleRadians rhs) noexcept
 
AAngleRadiansoperator*= (float k) noexcept
 
AAngleRadiansoperator/= (float k) noexcept
 
AAngleRadians operator+ (AAngleRadians rhs) const noexcept
 
AAngleRadians operator- (AAngleRadians rhs) const noexcept
 
AAngleRadians operator* (float k) const noexcept
 
AAngleRadians operator/ (float k) const noexcept
 

Detailed Description

Strong type used to store angle in radians.

Initialization

Recommended way is to use operator literal format:

auto angle = 180_deg;
angle.radians() --> 3.14
angle.degrees() --> 180
auto angle = 3.14_rad;
angle.radians() --> 3.14
angle.degrees() --> 180

The documentation for this class was generated from the following file: