#include <OpenGUI_Types.h>
This class is used to store radian values, as well as provide some basic conversion functions.
Public Member Functions | |
| Radian (float radian_value=0.0f) | |
| Constructor initialized with radian in a float. | |
| Radian (const Degree °ree_value) | |
| Constructor initialized with a Degree. | |
| float | valueDegrees () const |
| returns the current value as a float in degrees | |
| float | valueRadians () const |
| returns the current value as a float in radians | |
| const Radian & | operator= (const float &radian_float) |
| assignment with a radian in a float | |
| const Radian & | operator= (const Radian &radian) |
| assignment with a Radian | |
| const Radian & | operator= (const Degree °ree) |
| assignment with a Degree | |
| Radian | operator+ (const Radian &right) const |
| addition with a Radian | |
| Radian | operator+ (const Degree &right) const |
| addition with a Degree | |
| Radian & | operator+= (const Radian &right) |
| addition/assignment with a Radian | |
| Radian & | operator+= (const Degree &right) |
| addition/assignment with a Degree | |
| Radian | operator- () |
| inverse operator | |
| Radian | operator- (const Radian &right) const |
| subtraction with a Radian | |
| Radian | operator- (const Degree &right) const |
| subtraction with a Degree | |
| Radian & | operator-= (const Radian &right) |
| subtraction/assignment with a Radian | |
| Radian & | operator-= (const Degree &right) |
| subtraction/assignment with a Degree | |
| bool | operator== (const Radian &right) const |
| Equal. | |
| bool | operator!= (const Radian &right) const |
| Not Equal. | |
| bool | operator< (const Radian &right) const |
| Less than. | |
| bool | operator<= (const Radian &right) const |
| Less than or equal. | |
| OpenGUI::Radian::Radian | ( | float | radian_value = 0.0f |
) | [inline, explicit] |
Constructor initialized with radian in a float.
| OpenGUI::Radian::Radian | ( | const Degree & | degree_value | ) | [inline] |
Constructor initialized with a Degree.
| bool OpenGUI::Radian::operator!= | ( | const Radian & | right | ) | const [inline] |
Not Equal.
addition/assignment with a Degree
addition/assignment with a Radian
| Radian OpenGUI::Radian::operator- | ( | ) | [inline] |
inverse operator
subtraction/assignment with a Degree
subtraction/assignment with a Radian
| bool OpenGUI::Radian::operator< | ( | const Radian & | right | ) | const [inline] |
Less than.
| bool OpenGUI::Radian::operator<= | ( | const Radian & | right | ) | const [inline] |
Less than or equal.
assignment with a Degree
assignment with a Radian
| const Radian& OpenGUI::Radian::operator= | ( | const float & | radian_float | ) | [inline] |
assignment with a radian in a float
| bool OpenGUI::Radian::operator== | ( | const Radian & | right | ) | const [inline] |
Equal.
| float OpenGUI::Radian::valueDegrees | ( | ) | const [inline] |
returns the current value as a float in degrees
| float OpenGUI::Radian::valueRadians | ( | ) | const [inline] |
returns the current value as a float in radians