CryTransform::CAngle

#include

Inherited by CryTransform::CClampedAngle< TMinDegrees, TMaxDegrees >.

Public Member Functions

float & GetUnderlyingValueAsRadians ()
constexpr float ToDegrees () const
constexpr float ToRadians () const
constexpr CAngle Absolute () const
constexpr bool operator< (CAngle rhs) const
constexpr bool operator> (CAngle rhs) const
constexpr bool operator<= (CAngle rhs) const
constexpr bool operator>= (CAngle rhs) const
constexpr bool operator== (CAngle rhs) const
constexpr bool operator!= (CAngle rhs) const
constexpr CAngle operator- (CAngle rhs) const
constexpr CAngle operator+ (CAngle rhs) const
constexpr CAngle operator* (float rhs) const
constexpr CAngle operator/ (float rhs) const
constexpr CAngle operator- () const
CAngle & operator-= (CAngle rhs)
CAngle & operator+= (CAngle rhs)
CAngle & operator*= (float rhs)
CAngle & operator/= (float rhs)

Static Public Member Functions

static constexpr CAngle FromDegrees (float value)
static constexpr CAngle FromRadians (float value)
static void ReflectType (Schematyc::CTypeDesc< CAngle > &desc)

Protected Member Functions

constexpr CAngle (float value)

Protected Attributes

float m_value

Detailed Description

Specialized class to represent an angle, used to avoid converting back and forth between radians and degrees The type stores the angle in radians internally, since this is what the majority of engine systems need