It defines the basic type CDegrees, used to store an angle value in degrees. More...
#include <angles.h>
Public Member Functions | |
CDegrees () | |
Class constructor It initializes m_fValue to 0 degrees. More... | |
CDegrees (Real f_value) | |
Class constructor It initializes m_fValue to the passed value. More... | |
void | FromValueInRadians (Real f_value) |
Sets the value from a value in radians It sets m_fValue (which is in degrees) converting from the passed value in radians. More... | |
Real | GetValue () const |
Returns the value in degrees. More... | |
Real | GetAbsoluteValue () const |
Returns the absolute value in degrees. More... | |
void | SetValue (Real f_value) |
Sets the value in degrees. More... | |
CDegrees & | SignedNormalize () |
Normalizes the value in the range [-180:180]. More... | |
CDegrees & | UnsignedNormalize () |
Normalizes the value in the range [0:360]. More... | |
CDegrees & | operator+ () |
CDegrees | operator- () const |
CDegrees & | operator+= (const CDegrees &c_degrees) |
CDegrees & | operator-= (const CDegrees &c_degrees) |
CDegrees & | operator*= (Real f_value) |
CDegrees & | operator/= (Real f_value) |
CDegrees | operator+ (const CDegrees &c_degrees) const |
CDegrees | operator- (const CDegrees &c_degrees) const |
CDegrees | operator* (Real f_value) const |
Real | operator/ (const CDegrees &c_degrees) const |
CDegrees | operator/ (Real f_value) const |
bool | operator< (const CDegrees &c_degrees) const |
bool | operator<= (const CDegrees &c_degrees) const |
bool | operator> (const CDegrees &c_degrees) const |
bool | operator>= (const CDegrees &c_degrees) const |
bool | operator== (const CDegrees &c_degrees) const |
bool | operator!= (const CDegrees &c_degrees) const |
Friends | |
CDegrees | operator* (Real f_value, const CDegrees &c_degrees) |
CRadians | ToRadians (const CDegrees &c_degrees) |
Converts this object to CRadians. More... | |
CDegrees | NormalizedDifference (const CDegrees &c_angle1, const CDegrees &c_angle2) |
Calculates the normalized difference between the given angles. More... | |
std::ostream & | operator<< (std::ostream &c_os, const CDegrees &c_degrees) |
std::istream & | operator>> (std::istream &is, CDegrees &c_degrees) |
It defines the basic type CDegrees, used to store an angle value in degrees.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Calculates the normalized difference between the given angles.
The difference is calculated as c_angle1 - c_angle2 and normalized in the range [-180,180].
c_angle1 | The first angle |
c_angle2 | The second angle |
|
friend |
|
friend |