Instrument Neutral Distributed Interface INDI
2.0.2
|
The Angle class This class implements an angle type. This holds an angle that is always in the range -180 to +180 Relational and arithmetic operators work over the -180 - +180 discontinuity. More...
#include <scopesim_helper.h>
Public Types | |
enum | ANGLE_UNITS { DEGREES , HOURS , RADIANS } |
Public Member Functions | |
Angle () | |
Angle (double value, ANGLE_UNITS type) | |
Angle (double degrees) | |
double | Degrees () |
Degrees. More... | |
double | Degrees360 () |
Degrees360. More... | |
double | Hours () |
Hours. More... | |
double | HoursHa () |
HoursHa. More... | |
double | radians () |
radians More... | |
void | setDegrees (double deg) |
setDegrees set the angle in degrees More... | |
void | setHours (double hrs) |
setHours set the angle More... | |
Angle | add (Angle a) |
Angle | subtract (Angle a) |
double | difference (Angle a) |
Angle | operator- () |
Angle & | operator+= (const Angle &a) |
Angle & | operator+= (const double d) |
Angle & | operator-= (const Angle &a) |
Angle & | operator-= (const double d) |
Angle | operator+ (const Angle &a) |
Angle | operator+ (const double &d) |
Angle | operator- (const Angle &rhs) |
Angle | operator- (const double &rhs) |
Angle | operator* (const double duration) |
operator * multiplies the angle by a double, used to manage tracking and slewing More... | |
bool | operator== (const Angle &a) |
bool | operator!= (const Angle &a) |
bool | operator> (const Angle &a) |
bool | operator< (const Angle &a) |
bool | operator>= (const Angle &a) |
bool | operator<= (const Angle &a) |
The Angle class This class implements an angle type. This holds an angle that is always in the range -180 to +180 Relational and arithmetic operators work over the -180 - +180 discontinuity.
Definition at line 50 of file scopesim_helper.h.
enum Angle::ANGLE_UNITS |
Enumerator | |
---|---|
DEGREES | |
HOURS | |
RADIANS |
Definition at line 73 of file scopesim_helper.h.
|
inline |
Definition at line 75 of file scopesim_helper.h.
Angle::Angle | ( | double | value, |
ANGLE_UNITS | type | ||
) |
Definition at line 32 of file scopesim_helper.cpp.
|
inline |
Definition at line 82 of file scopesim_helper.h.
Definition at line 152 of file scopesim_helper.h.
|
inline |
Degrees.
Definition at line 93 of file scopesim_helper.h.
|
inline |
Degrees360.
Definition at line 102 of file scopesim_helper.h.
|
inline |
Definition at line 163 of file scopesim_helper.h.
|
inline |
|
inline |
bool Angle::operator!= | ( | const Angle & | a | ) |
Definition at line 58 of file scopesim_helper.cpp.
|
inline |
operator * multiplies the angle by a double, used to manage tracking and slewing
duration | as a double |
Definition at line 224 of file scopesim_helper.h.
Definition at line 197 of file scopesim_helper.h.
|
inline |
Definition at line 202 of file scopesim_helper.h.
Definition at line 173 of file scopesim_helper.h.
|
inline |
Definition at line 179 of file scopesim_helper.h.
|
inline |
Definition at line 168 of file scopesim_helper.h.
Definition at line 207 of file scopesim_helper.h.
|
inline |
Definition at line 212 of file scopesim_helper.h.
Definition at line 185 of file scopesim_helper.h.
|
inline |
Definition at line 191 of file scopesim_helper.h.
|
inline |
Definition at line 238 of file scopesim_helper.h.
|
inline |
Definition at line 246 of file scopesim_helper.h.
bool Angle::operator== | ( | const Angle & | a | ) |
Definition at line 53 of file scopesim_helper.cpp.
|
inline |
Definition at line 233 of file scopesim_helper.h.
|
inline |
Definition at line 242 of file scopesim_helper.h.
double Angle::radians | ( | ) |
radians
Definition at line 48 of file scopesim_helper.cpp.
|
inline |
setDegrees set the angle in degrees
deg | angle in degrees |
Definition at line 138 of file scopesim_helper.h.
|
inline |
setHours set the angle
hrs | angle in hours |
Definition at line 147 of file scopesim_helper.h.
Definition at line 158 of file scopesim_helper.h.