#include <angle.h>
Public Member Functions | |
Angle (bool dms=false) | |
default constructor | |
Angle (const string &s, bool dms=false) | |
constructor using symbol | |
void | dec () |
set decimal format | |
void | dms () |
set DMS format | |
bool | is_dms () const |
check DMS format | |
void | set (double v) |
set value | |
double | get () const |
get value | |
void | rad (double v) |
set value in radiant | |
double | rad () const |
get value radiant | |
double | deg () const |
get value gon | |
double | gon () const |
get value gon | |
const char * | unit () const |
get unit | |
Private Attributes | |
double | _val |
value in radiant | |
bool | _is_dms |
DMS (true) or decimal (false). |
Principle: [measurement] = [value] + [unit]).