38 #include <zeusbase/System/Float.h> 71 virtual inline Float MQUALIFIER
getRadians()
const {
return m_fRadians; }
72 virtual inline Float MQUALIFIER
getDegrees()
const {
return radiansToDegrees(getRadians()); }
74 virtual inline void MQUALIFIER
setRadians(
const Float& fAngle) { m_fRadians = fAngle; }
75 virtual inline void MQUALIFIER
setDegrees(
const Float& fAngle) { setRadians(degreesToRadians(fAngle)); }
77 virtual inline void MQUALIFIER
assign(
const IAngle& rAngle) { *
this = rAngle; }
79 virtual bool MQUALIFIER isEqual(
const IAngle& rAngle,
80 bool bNormalizeToSingleCircle =
false)
const;
82 virtual inline Float MQUALIFIER
cos()
const {
return TFloat(getRadians()).cos(); }
83 virtual inline Float MQUALIFIER
sin()
const {
return TFloat(getRadians()).sin(); }
84 virtual inline Float MQUALIFIER
tan()
const {
return TFloat(getRadians()).tan(); }
86 virtual void MQUALIFIER normalizeToInterval(
const IAngle& rAngleMin,
88 bool bIncludeMin,
bool bIncludeMax);
90 virtual void MQUALIFIER normalizeToSingleCircle();
104 inline TAngle operator/ (
const Float& rFloat)
const {
return *
this * (Float(1) / rFloat); }
110 inline bool operator< (
const IAngle& rAngle)
const {
return (getRadians() < rAngle.
getRadians()); }
112 inline bool operator> (
const IAngle& rAngle)
const {
return (getRadians() > rAngle.
getRadians()); }
121 static inline Float
radiansToDegrees(
const Float& fAngle) {
return fAngle * TConstants::RadiansToDegrees; }
129 static inline Float
degreesToRadians(
const Float& fAngle) {
return fAngle * TConstants::DegreesToRadians; }
131 Float getValue(
ESystem eSystem)
const;
TAngle operator-(const IAngle &rAngle)
Definition: Angle.h:143
virtual Float MQUALIFIER getDegrees() const
Definition: Angle.h:72
virtual void MQUALIFIER setRadians(const Float &fAngle)
Definition: Angle.h:74
virtual Float MQUALIFIER tan() const
Definition: Angle.h:84
bool operator>=(const IAngle &rAngle) const
Definition: Angle.h:113
virtual Float MQUALIFIER getRadians() const =0
bool operator==(const IAngle &rAngle) const
Definition: Angle.h:107
const TAngle & operator+=(const IAngle &rAngle)
Definition: Angle.h:101
virtual Float MQUALIFIER cos() const
Definition: Angle.h:82
virtual void MQUALIFIER assign(const IAngle &rAngle)
Definition: Angle.h:77
const TAngle & operator=(const TAngle &rAngle)
Assignment of class type object.
Definition: Angle.h:96
virtual Float MQUALIFIER sin() const
Definition: Angle.h:83
virtual Float MQUALIFIER getRadians() const
Definition: Angle.h:71
TAngle()
Default constructor.
Definition: Angle.h:56
TAngle operator+(const IAngle &rAngle)
Definition: Angle.h:149
static Float degreesToRadians(const Float &fAngle)
Definition: Angle.h:129
bool operator!=(const IAngle &rAngle) const
Definition: Angle.h:108
TAngle(const TAngle &rAngle)
Copy constructor: Constructor taking class type object.
Definition: Angle.h:62
const TAngle & operator-=(const IAngle &rAngle)
Definition: Angle.h:102
TVector2D operator*(const Float &f, const IVector2D &rVector)
Definition: Vector2D.h:693
ESystem
Definition: IAngle.hpp:53
virtual ~TAngle()
Virtual destructor.
Definition: Angle.h:68
virtual void MQUALIFIER setDegrees(const Float &fAngle)
Definition: Angle.h:75
Definition: IAngle.hpp:47
TAngle(const IAngle &rAngle)
Constructor taking interface type object.
Definition: Angle.h:65
static Float radiansToDegrees(const Float &fAngle)
Definition: Angle.h:121
bool operator<=(const IAngle &rAngle) const
Definition: Angle.h:111
const TAngle & operator=(const IAngle &rAngle)
Assignment of interface type object.
Definition: Angle.h:93