ZeusMath-Library
2.0.4
|
#include <Angle.h>
Public Member Functions | |
TAngle () | |
Default constructor. More... | |
TAngle (const Float &fAngle, ESystem eSystem) | |
Constructor with value. More... | |
TAngle (const TAngle &rAngle) | |
Copy constructor: Constructor taking class type object. More... | |
TAngle (const IAngle &rAngle) | |
Constructor taking interface type object. More... | |
virtual | ~TAngle () |
Virtual destructor. More... | |
virtual Float MQUALIFIER | getRadians () const |
virtual Float MQUALIFIER | getDegrees () const |
virtual void MQUALIFIER | setRadians (const Float &fAngle) |
virtual void MQUALIFIER | setDegrees (const Float &fAngle) |
virtual void MQUALIFIER | assign (const IAngle &rAngle) |
virtual bool MQUALIFIER | isEqual (const IAngle &rAngle, bool bNormalizeToSingleCircle=false) const |
virtual Float MQUALIFIER | cos () const |
virtual Float MQUALIFIER | sin () const |
virtual Float MQUALIFIER | tan () const |
virtual void MQUALIFIER | normalizeToInterval (const IAngle &rAngleMin, const IAngle &rAngleMax, bool bIncludeMin, bool bIncludeMax) |
virtual void MQUALIFIER | normalizeToSingleCircle () |
const TAngle & | operator= (const IAngle &rAngle) |
Assignment of interface type object. More... | |
const TAngle & | operator= (const TAngle &rAngle) |
Assignment of class type object. More... | |
TAngle | operator+ (const IAngle &rAngle) const |
TAngle | operator- (const IAngle &rAngle) const |
const TAngle & | operator+= (const IAngle &rAngle) |
const TAngle & | operator-= (const IAngle &rAngle) |
TAngle | operator* (const Float &rFloat) const |
TAngle | operator/ (const Float &rFloat) const |
bool | operator== (const IAngle &rAngle) const |
bool | operator!= (const IAngle &rAngle) const |
bool | operator< (const IAngle &rAngle) const |
bool | operator<= (const IAngle &rAngle) const |
bool | operator> (const IAngle &rAngle) const |
bool | operator>= (const IAngle &rAngle) const |
Float | getValue (ESystem eSystem) const |
Static Public Member Functions | |
static Float | radiansToDegrees (const Float &fAngle) |
static Float | degreesToRadians (const Float &fAngle) |
Additional Inherited Members | |
Public Types inherited from zeus::IAngle | |
enum | ESystem { etRadians = 0, etDegrees = 1 } |
TAngle encapsulates a floating point angle. Its value can be read specifically as radians or degrees. The class also serves as convertor between different angle systems.
TAngle objects are stack objects.
|
inline |
Default constructor.
zeus::TAngle::TAngle | ( | const Float & | fAngle, |
ESystem | eSystem | ||
) |
Constructor with value.
Constructor with value.
fAngle | [IN]: The angle. |
eSystem | [IN]: The angle system. |
|
inline |
Copy constructor: Constructor taking class type object.
|
inline |
Constructor taking interface type object.
|
inlinevirtual |
Virtual destructor.
|
inlinevirtual |
Assignment.
rAngle | [IN]: Reference to interface type object to be assigned to this object. |
Implements zeus::IAngle.
|
inlinevirtual |
Trigonometry.
Calculate the cosine of this angle.
Implements zeus::IAngle.
|
inlinestatic |
Static conversion method to convert an angle from degrees to radiant
fAngle | : angle in degrees |
|
inlinevirtual |
|
inlinevirtual |
Float zeus::TAngle::getValue | ( | ESystem | eSystem | ) | const |
returns the value depending on the system
eSystem | : requested angle system |
|
virtual |
Checks if two angles are equal. If normalisation is selected the angle is normalized to 0-360
rAngle | : angle to check |
bNormalizeToSingleCircle | : selects the normalisation (default = false) |
true | : angles are equal |
false | : angles are not equal. |
Implements zeus::IAngle.
|
virtual |
Normalizes the angle to an angle interval
rAngleMin | : minimum interval value |
rAngleMax | : maximum interval value |
bIncludeMin | : flag if the minumum is included |
bIncludeMax | : flag if the maximum is included |
Implements zeus::IAngle.
|
virtual |
Normalizes the angle to an angle interval between 0 and 360 degrees
Implements zeus::IAngle.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Assignment of interface type object.
Assignment of class type object.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Static conversion method to convert an angle from radiant to degrees
fAngle | : radiant angle |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |