#include <Angle.h>

Public Member Functions | |
| Angle () | |
| Standard constructor. | |
| Angle (const Angle &a) | |
| Copy constructor. | |
| Angle (const GLfloat &a, const enum angleType ¤tAngleType) | |
| Constructor for initializing by value. | |
| const GLfloat | getRad () const |
| Returns the angle in radian. | |
| const GLfloat | getDeg () const |
| Returns the angle in degree. | |
| void | setRad (const GLfloat &a) |
| Sets the angle in radian. | |
| void | setDeg (const GLfloat &a) |
| Sets the angle in degree. | |
| virtual string | toString () const |
| Returns a textual representation. | |
| virtual string | className () const |
| Returns the class name of the object. | |
| virtual enum classId | classId () const |
| Returns the class id of the object. | |
| Angle | operator= (const Angle &a) |
| Angle | operator+= (const Angle &a) |
| Angle | operator-= (const Angle &a) |
| bool | operator== (const Angle &a) |
| bool | operator!= (const Angle &a) |
| bool | operator< (const Angle &a) |
| bool | operator> (const Angle &a) |
| bool | operator<= (const Angle &a) |
| bool | operator>= (const Angle &a) |
Private Attributes | |
| GLfloat | angle |
| The angle in radian. | |
Friends | |
| Angle | operator- (const Angle &a) |
| Angle | operator+ (const Angle &a1, const Angle &a2) |
| Angle | operator- (const Angle &a1, const Angle &a2) |
| Angle | operator* (const Angle &s, const float &a) |
| Angle | operator* (const float &a, const Angle &s) |
| Angle | operator/ (const Angle &s, const float &a) |
| Angle | operator/ (const float &a, const Angle &s) |
Provides basic mathematical angle functionality i.e. switch between degree (0..360) and radian (0..2*PI)
| Angle::Angle | ( | ) |
Standard constructor.
Standard Constructor sets angle to 0.0
| Angle::Angle | ( | const Angle & | a | ) |
| Angle::Angle | ( | const GLfloat & | a, | |
| const enum angleType & | currentAngleType | |||
| ) |
Constructor for initializing by value.
Constructor for initialization by value
| a | The value | |
| currentAngleType | The type of the value (either DEGREE or RADIANCE) |
| const GLfloat Angle::getRad | ( | ) | const |
Returns the angle in radian.
| const GLfloat Angle::getDeg | ( | ) | const |
Returns the angle in degree.
| void Angle::setRad | ( | const GLfloat & | a | ) |
Sets the angle in radian.
Sets the angle in radian
| a | The value (in radiance) |
| void Angle::setDeg | ( | const GLfloat & | a | ) |
Sets the angle in degree.
Sets the angle in degree
| a | The value (in degree) |
| string Angle::toString | ( | ) | const [virtual] |
Returns a textual representation.
Reimplemented from Object.
| string Angle::className | ( | ) | const [virtual] |
Returns the class name of the object.
Reimplemented from Object.
| enum classId Angle::classId | ( | ) | const [virtual] |
| bool Angle::operator== | ( | const Angle & | a | ) | [inline] |
| bool Angle::operator!= | ( | const Angle & | a | ) | [inline] |
| bool Angle::operator< | ( | const Angle & | a | ) | [inline] |
| bool Angle::operator> | ( | const Angle & | a | ) | [inline] |
| bool Angle::operator<= | ( | const Angle & | a | ) | [inline] |
| bool Angle::operator>= | ( | const Angle & | a | ) | [inline] |
GLfloat Angle::angle [private] |
The angle in radian.
1.5.6