ZeusMath-Library
2.0.4
|
#include <IAngle.hpp>
Public Types | |
enum | ESystem { etRadians = 0, etDegrees = 1 } |
Public Member Functions | |
virtual Float MQUALIFIER | getRadians () const =0 |
virtual Float MQUALIFIER | getDegrees () const =0 |
virtual void MQUALIFIER | setRadians (const Float &fAngle)=0 |
virtual void MQUALIFIER | setDegrees (const Float &fAngle)=0 |
virtual void MQUALIFIER | assign (const IAngle &rAngle)=0 |
virtual bool MQUALIFIER | isEqual (const IAngle &rAngle, bool bNormalizeToSingleCircle=false) const =0 |
virtual Float MQUALIFIER | cos () const =0 |
virtual Float MQUALIFIER | sin () const =0 |
virtual Float MQUALIFIER | tan () const =0 |
virtual void MQUALIFIER | normalizeToInterval (const IAngle &rAngleMin, const IAngle &rAngleMax, bool bIncludeMin, bool bIncludeMax)=0 |
virtual void MQUALIFIER | normalizeToSingleCircle ()=0 |
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.
|
pure virtual |
Assignment.
rAngle | [IN]: Reference to interface type object to be assigned to this object. |
Implemented in zeus::TAngle.
|
pure virtual |
Trigonometry.
Calculate the cosine of this angle.
Implemented in zeus::TAngle.
|
pure virtual |
|
pure virtual |
|
pure virtual |
Equality with another angle?
rAngle | [IN]: Angle to be compared to this angle. |
bNormalizeToSingleCircle | [IN]: Normalize to a single circle angle interval before comparing. |
Implemented in zeus::TAngle.
|
pure virtual |
Normalize the angle to a given interval.
rAngleMin | [IN]: Minimum value of the given interval. |
rAngleMax | [IN]: Maximum value of the given interval. |
bIncludeMin | [IN]: Include the minimum value itself. |
bIncludeMax | [IN]: Include the maximum value itself. |
Implemented in zeus::TAngle.
|
pure virtual |
Normalize the angle to a single circle interval.
Implemented in zeus::TAngle.
|
pure virtual |
Set the angle's value in degrees.
fAngle | [IN]: Angle in degrees. |
Implemented in zeus::TAngle.
|
pure virtual |
Set the angle's value in radians.
fAngle | [IN]: Angle in radians. |
Implemented in zeus::TAngle.
|
pure virtual |
|
pure virtual |