Class for dealing with angular info.
More...
#include <Angle.h>
|
enum | Type { Degrees,
Radians,
Turns
} |
|
|
| Angle (const Angle &a) |
|
| Angle (const double &rad=0) |
|
void | setWrapPoint (double wp) |
|
double | getWrapPoint () |
|
void | setHMS (int hours, int minutes, double seconds) |
|
void | getHMS (int &hours, int &minutes, double &seconds) const |
|
int | setHMS (const char *) |
|
char * | getHMS (char *str, int places=3) const |
| Get the value in HH:MM:SS[.sss]. More...
|
|
std::string | getHMS (int places=3) const |
| Get the value in HH:MM:SS[.sss].
|
|
void | setDMS (int degrees, int minutes, double seconds) |
|
void | getDMS (int °rees, int &minutes, double &seconds) const |
|
int | setDMS (const char *) |
|
char * | getDMS (char *str, int places=3) const |
| Get the value in DD:MM:SS[.sss]. More...
|
|
std::string | getDMS (int places=3) const |
| Get the value in DD:MM:SS[.sss].
|
|
void | setRadMS (long int ms) |
|
long | getRadMS () const |
|
void | setDegrees (double deg) |
|
double | getDegrees () const |
|
void | setTurns (double turns) |
|
double | getTurns () const |
|
void | setRadians (double rad) |
|
double | getRadians () const |
|
void | setDegMS (double deg_mmss) |
|
double | getDegMS () const |
|
void | setHourMS (double hour_mmss) |
|
double | getHourMS () const |
|
void | setTurnMS (double turn_mmss) |
|
double | getTurnMS () const |
|
Angle & | operator= (const Angle &a) |
|
Angle & | operator= (const double &val) |
|
Angle & | operator+= (const Angle &a) |
|
Angle & | operator-= (const Angle &a) |
|
Angle & | operator+= (const double &d) |
|
Angle & | operator-= (const double &d) |
|
Angle & | operator*= (const double &d) |
|
Angle & | operator/= (const double &d) |
|
|
static bool | verbose = false |
|
static Type | default_type = Angle::Radians |
|
|
virtual void | wrap () |
|
void | init () |
|
|
double | radians |
|
double | wrap_point |
|
|
class | AnglePair |
|
const friend Angle | operator+ (const Angle &, const Angle &) |
|
const friend Angle | operator- (const Angle &, const Angle &) |
|
const friend Angle | operator+ (const Angle &, double) |
|
const friend Angle | operator- (const Angle &, double) |
|
const friend Angle | operator/ (const Angle &, double) |
|
const friend Angle | operator* (const Angle &, double) |
|
const friend Angle | operator- (const Angle &) |
|
double | operator* (const Angle &, const Angle &) |
|
int | operator> (const Angle &, const Angle &) |
|
int | operator< (const Angle &, const Angle &) |
|
int | operator>= (const Angle &, const Angle &) |
|
int | operator<= (const Angle &, const Angle &) |
|
int | operator== (const Angle &, const Angle &) |
|
int | operator!= (const Angle &, const Angle &) |
|
double | cast_double (const Angle &a) |
|
Class for dealing with angular info.
◆ getDMS()
char * Angle::getDMS |
( |
char * |
str, |
|
|
int |
places = 3 |
|
) |
| const |
Get the value in DD:MM:SS[.sss].
- Parameters
-
str | must point to an arrays of at least ANGLE_STR characters |
◆ getHMS()
char * Angle::getHMS |
( |
char * |
str, |
|
|
int |
places = 3 |
|
) |
| const |
Get the value in HH:MM:SS[.sss].
- Parameters
-
str | must point to an arrays of at least ANGLE_STR characters |
The documentation for this class was generated from the following files: