20 #ifndef OMNI_GEOMETRY_ANGLE_H_
21 #define OMNI_GEOMETRY_ANGLE_H_
void setDegrees(qreal _angle)
Set angle by given degrees.
Definition: Angle.cpp:37
Angle const & operator-=(Angle const &)
Decrement angle by another.
Definition: Angle.cpp:81
qreal degrees() const
Return degrees.
Definition: Angle.cpp:49
void setRadians(qreal _angle)
Set angle by radians.
Definition: Angle.cpp:43
Angle const & operator+=(Angle const &)
Increment angle by another.
Definition: Angle.cpp:75
QDataStream & operator<<(QDataStream &_os, const omni::geometry::Angle &_angle)
Definition: Angle.cpp:94
QDataStream & operator>>(QDataStream &_is, omni::geometry::Angle &_angle)
Definition: Angle.cpp:100
static Angle fromRad(qreal _angle)
Constructs angle from radians.
Definition: Angle.cpp:67
friend bool operator==(Angle const &, Angle const &)
Test for equality.
Definition: Angle.cpp:87
static Angle fromDeg(qreal _angle)
Constructs from degrees.
Definition: Angle.cpp:61
qreal angle_
Definition: Angle.h:65
Struct for representing an angle (stored in degrees internally)
Definition: Angle.h:28
qreal radians() const
Returns radians.
Definition: Angle.cpp:55
Angle()
Default constructor.
Definition: Angle.cpp:28