Inheritance diagram for code::Angle:
This class can be used to perform degree-to-radian conversion, etc.
Public Member Functions | |
Angle () | |
By default, build the zero angle. | |
Angle (double value, const std::string &unit) | |
Build from a number and a unit string, which could be either "degrees" or "radians". | |
double | degrees () const |
double | radians () const |
double | value (const std::string &unit) const |
Angle | norm () const |
Angle & | operator *= (double d) |
Angle & | operator/= (double d) |
Angle & | operator+= (const Angle &a) |
Angle & | operator-= (const Angle &a) |
Angle | operator * (double d) const |
Angle | operator/ (double d) const |
double | operator/ (const Angle &a) const |
Angle | operator+ (const Angle &a) const |
Angle | operator- (const Angle &a) const |
int | compareTo (const Angle &a) const |
bool | operator< (const Angle &a) const |
bool | operator<= (const Angle &a) const |
bool | operator== (const Angle &a) const |
bool | operator!= (const Angle &a) const |
bool | operator>= (const Angle &a) const |
bool | operator> (const Angle &a) const |
double | cos () const |
double | sin () const |
double | tan () const |
Static Public Member Functions | |
static Angle | Degrees (double deg) |
static Angle | Radians (double rad) |
static Angle | DegMinSec (double d, double m, double s) |
static double | cos (const Angle &a) |
static double | sin (const Angle &a) |
static double | tan (const Angle &a) |
static Angle | arccos (double t) |
static Angle | arcsin (double t) |
static Angle | arctan (double t) |
static Angle | arctan2 (double y, double x) |
code::Angle::Angle | ( | ) | [inline] |
By default, build the zero angle.
code::Angle::Angle | ( | double | value, | |
const std::string & | unit | |||
) |
Build from a number and a unit string, which could be either "degrees" or "radians".
static Angle code::Angle::arccos | ( | double | t | ) | [inline, static] |
static Angle code::Angle::arcsin | ( | double | t | ) | [inline, static] |
static Angle code::Angle::arctan | ( | double | t | ) | [inline, static] |
static Angle code::Angle::arctan2 | ( | double | y, | |
double | x | |||
) | [inline, static] |
int code::Angle::compareTo | ( | const Angle & | a | ) | const [inline] |
static double code::Angle::cos | ( | const Angle & | a | ) | [inline, static] |
double code::Angle::cos | ( | ) | const [inline] |
static Angle code::Angle::DegMinSec | ( | double | d, | |
double | m, | |||
double | s | |||
) | [static] |
double code::Angle::degrees | ( | ) | const [inline] |
static Angle code::Angle::Degrees | ( | double | deg | ) | [inline, static] |
Angle code::Angle::norm | ( | ) | const |
Angle code::Angle::operator * | ( | double | d | ) | const [inline] |
Angle& code::Angle::operator *= | ( | double | d | ) | [inline] |
bool code::Angle::operator!= | ( | const Angle & | a | ) | const [inline] |
double code::Angle::operator/ | ( | const Angle & | a | ) | const [inline] |
Angle code::Angle::operator/ | ( | double | d | ) | const [inline] |
Angle& code::Angle::operator/= | ( | double | d | ) | [inline] |
bool code::Angle::operator< | ( | const Angle & | a | ) | const [inline] |
bool code::Angle::operator<= | ( | const Angle & | a | ) | const [inline] |
bool code::Angle::operator== | ( | const Angle & | a | ) | const [inline] |
bool code::Angle::operator> | ( | const Angle & | a | ) | const [inline] |
bool code::Angle::operator>= | ( | const Angle & | a | ) | const [inline] |
double code::Angle::radians | ( | ) | const [inline] |
static Angle code::Angle::Radians | ( | double | rad | ) | [inline, static] |
static double code::Angle::sin | ( | const Angle & | a | ) | [inline, static] |
double code::Angle::sin | ( | ) | const [inline] |
static double code::Angle::tan | ( | const Angle & | a | ) | [inline, static] |
double code::Angle::tan | ( | ) | const [inline] |
double code::Angle::value | ( | const std::string & | unit | ) | const |