It defines the basic type CRadians, used to store an angle value in radians. More...
#include <angles.h>
Public Member Functions | |
CRadians () | |
Class constructor It initializes m_fValue to 0 radians. More... | |
CRadians (Real f_value) | |
Class constructor It initializes m_fValue to the passed value. More... | |
void | FromValueInDegrees (Real f_value) |
Sets the value from a value in degrees It sets m_fValue (which is in radians) converting from the passed value in degrees. More... | |
Real | GetValue () const |
Returns the value in radians. More... | |
Real | GetAbsoluteValue () const |
Returns the absolute value in radians. More... | |
void | SetValue (Real f_value) |
Sets the value in radians. More... | |
CRadians & | SignedNormalize () |
Normalizes the value in the range [-PI:PI]. More... | |
CRadians & | UnsignedNormalize () |
Normalizes the value in the range [0:TWO_PI]. More... | |
CRadians & | Negate () |
CRadians & | operator+ () |
CRadians | operator- () const |
CRadians & | operator+= (const CRadians &c_radians) |
CRadians & | operator-= (const CRadians &c_radians) |
CRadians & | operator*= (Real f_value) |
CRadians & | operator/= (Real f_value) |
CRadians | operator+ (const CRadians &c_radians) const |
CRadians | operator- (const CRadians &c_radians) const |
CRadians | operator* (Real f_value) const |
Real | operator/ (const CRadians &c_radians) const |
CRadians | operator/ (Real f_value) const |
bool | operator< (const CRadians &c_radians) const |
bool | operator<= (const CRadians &c_radians) const |
bool | operator> (const CRadians &c_radians) const |
bool | operator>= (const CRadians &c_radians) const |
bool | operator== (const CRadians &c_radians) const |
bool | operator!= (const CRadians &c_radians) const |
Static Public Attributes | |
static const CRadians | PI |
The PI constant. More... | |
static const CRadians | TWO_PI |
Set to PI * 2. More... | |
static const CRadians | PI_OVER_TWO |
Set to PI / 2. More... | |
static const CRadians | PI_OVER_THREE |
Set to PI / 3. More... | |
static const CRadians | PI_OVER_FOUR |
Set to PI / 4. More... | |
static const CRadians | PI_OVER_SIX |
Set to PI / 6. More... | |
static const CRadians | ZERO |
Set to zero radians. More... | |
static const CRange< CRadians > | SIGNED_RANGE |
The signed normalization range [-PI:PI]. More... | |
static const CRange< CRadians > | UNSIGNED_RANGE |
The unsigned normalization range [0:TWO_PI]. More... | |
static const Real | RADIANS_TO_DEGREES |
Constant to convert from radians to degrees. More... | |
It defines the basic type CRadians, used to store an angle value in radians.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Normalizes the value in the range [-PI:PI].
|
inline |
Normalizes the value in the range [0:TWO_PI].
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |