|
pixled-lib
1.0
|
#include <geometry.h>
Public Member Functions | |
| float | toRad () const |
| float | toDeg () const |
| angle & | operator+= (const angle &a) |
| angle & | operator-= (const angle &a) |
Static Public Member Functions | |
| static angle | fromRad (float value) |
| static angle | fromDeg (float value) |
Basic class used to represent angles, with radian / degree conversion.
|
static |
Builds an angle from the specified value, in radian.
| value | value of the angle in radian |
|
static |
Builds an angle from the specified value, in degree.
| value | value of the angle in degree |
|
inline |
Returns the value of this angle, in radian.
|
inline |
Returns the value of this angle, in degree.
Adds a to this angle.
| a | angle to add |
Substracts a from this angle.
| a | angle to substract |