|
Omnidome
Fulldome Mapping Software Toolkit
|
Struct for representing an angle (stored in degrees internally) More...
#include <Angle.h>
Public Member Functions | |
| Angle () | |
| Default constructor. More... | |
| Angle (qreal _angle) | |
| Constructor from value. More... | |
| void | setDegrees (qreal _angle) |
| Set angle by given degrees. More... | |
| void | setRadians (qreal _angle) |
| Set angle by radians. More... | |
| qreal | degrees () const |
| Return degrees. More... | |
| qreal | radians () const |
| Returns radians. More... | |
| Angle const & | operator+= (Angle const &) |
| Increment angle by another. More... | |
| Angle const & | operator-= (Angle const &) |
| Decrement angle by another. More... | |
Static Public Member Functions | |
| static Angle | fromDeg (qreal _angle) |
| Constructs from degrees. More... | |
| static Angle | fromRad (qreal _angle) |
| Constructs angle from radians. More... | |
Private Attributes | |
| qreal | angle_ |
Friends | |
| bool | operator== (Angle const &, Angle const &) |
| Test for equality. More... | |
Struct for representing an angle (stored in degrees internally)
| omni::geometry::Angle::Angle | ( | ) |
Default constructor.
| omni::geometry::Angle::Angle | ( | qreal | _angle | ) |
Constructor from value.
| qreal omni::geometry::Angle::degrees | ( | ) | const |
Return degrees.
|
static |
Constructs from degrees.
|
static |
Constructs angle from radians.
Increment angle by another.
Decrement angle by another.
| qreal omni::geometry::Angle::radians | ( | ) | const |
Returns radians.
| void omni::geometry::Angle::setDegrees | ( | qreal | _angle | ) |
Set angle by given degrees.
| void omni::geometry::Angle::setRadians | ( | qreal | _angle | ) |
Set angle by radians.
Test for equality.
|
private |
1.8.6