#include <angle.h>
Public Member Functions | |
| Angle () | |
| Constructs a null Angle object. | |
| Angle (float value, AngleUnit unit) | |
| Constructs an Angle object. | |
| Angle & | normalize () |
| Converts angle to range [0,360] degrees. | |
| Angle & | normalize_180 () |
| Converts angle to range [-180,180] degrees. | |
| bool | operator!= (const Angle &angle) const |
| != operator. | |
| Angle | operator* (const Angle &angle) const |
| |
| Angle | operator* (float value) const |
| |
| void | operator*= (const Angle &angle) |
| *= operator. | |
| Angle | operator+ (const Angle &angle) const |
| |
| void | operator+= (const Angle &angle) |
| += operator. | |
| Angle | operator- (const Angle &angle) const |
| |
| void | operator-= (const Angle &angle) |
| -= operator. | |
| Angle | operator/ (const Angle &angle) const |
| / operator. | |
| Angle | operator/ (float value) const |
| / operator. | |
| void | operator/= (const Angle &angle) |
| /= operator. | |
| bool | operator< (const Angle &angle) const |
| < operator. | |
| bool | operator<= (const Angle &angle) const |
| < operator. | |
| bool | operator== (const Angle &angle) const |
| == operator. | |
| bool | operator> (const Angle &angle) const |
| > operator. | |
| bool | operator>= (const Angle &angle) const |
| > operator. | |
| void | set_degrees (float value_degrees) |
| Set the angle value in degrees. | |
| void | set_radians (float value_radians) |
| Set the angle value in radians. | |
| float | to_degrees () const |
| Returns the angle as degrees. | |
| float | to_radians () const |
| Returns the angle as radians. | |
Static Public Member Functions | |
| static Angle | from_degrees (float value) |
| From degrees. | |
| static Angle | from_radians (float value) |
| From radians. | |
Angle class.
| clan::Angle::Angle | ( | ) |
Constructs a null Angle object.
Referenced by from_degrees(), from_radians(), normalize(), normalize_180(), operator!=(), operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/(), operator/=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().
|
static |
|
static |
| Angle & clan::Angle::normalize | ( | ) |
| Angle & clan::Angle::normalize_180 | ( | ) |
| bool clan::Angle::operator!= | ( | const Angle & | angle | ) | const |
!= operator.
References Angle(), and clan::angle.
References Angle(), and clan::angle.
| void clan::Angle::operator*= | ( | const Angle & | angle | ) |
*= operator.
References Angle(), and clan::angle.
References Angle(), and clan::angle.
| void clan::Angle::operator+= | ( | const Angle & | angle | ) |
+= operator.
References Angle(), and clan::angle.
References Angle(), and clan::angle.
| void clan::Angle::operator-= | ( | const Angle & | angle | ) |
-= operator.
References Angle(), and clan::angle.
/ operator.
References Angle(), and clan::angle.
| void clan::Angle::operator/= | ( | const Angle & | angle | ) |
/= operator.
References Angle(), and clan::angle.
| bool clan::Angle::operator< | ( | const Angle & | angle | ) | const |
< operator.
References Angle(), and clan::angle.
| bool clan::Angle::operator<= | ( | const Angle & | angle | ) | const |
< operator.
References Angle(), and clan::angle.
| bool clan::Angle::operator== | ( | const Angle & | angle | ) | const |
== operator.
References Angle(), and clan::angle.
| bool clan::Angle::operator> | ( | const Angle & | angle | ) | const |
> operator.
References Angle(), and clan::angle.
| bool clan::Angle::operator>= | ( | const Angle & | angle | ) | const |
> operator.
References Angle(), and clan::angle.
| void clan::Angle::set_degrees | ( | float | value_degrees | ) |
Set the angle value in degrees.
| void clan::Angle::set_radians | ( | float | value_radians | ) |
Set the angle value in radians.
| float clan::Angle::to_degrees | ( | ) | const |
Returns the angle as degrees.
| float clan::Angle::to_radians | ( | ) | const |
Returns the angle as radians.