AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
AAngleRadians Class Reference

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

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

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
 

#include <AUI/Util/AAngleRadians.h>


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