API
4.5.1
For C++ developers
|
A class implementing various units for measuring quantities. More...
Public Member Functions | |
Units () | |
Units (const std::string aString) | |
Units (UnitType aType) | |
virtual | ~Units () |
double | convertTo (UnitType aType, double aValue) const |
double | convertTo (UnitType aType) const |
double | convertTo (const Units &aUnit) const |
UnitType | getType () const |
std::string | getLabel () const |
std::string | getAbbreviation () const |
Public Types | |
enum | UnitType { UnknownUnits = 0, Radians, Degrees, Millimeters, Centimeters, Meters, Seconds, Milliseconds, Newtons } |
A class implementing various units for measuring quantities.
OpenSim::Units::Units | ( | ) |
OpenSim::Units::Units | ( | const std::string | aString | ) |
OpenSim::Units::Units | ( | UnitType | aType | ) |
|
virtual |
double OpenSim::Units::convertTo | ( | UnitType | aType, |
double | aValue | ||
) | const |
double OpenSim::Units::convertTo | ( | UnitType | aType | ) | const |
double OpenSim::Units::convertTo | ( | const Units & | aUnit | ) | const |
std::string OpenSim::Units::getAbbreviation | ( | ) | const |
std::string OpenSim::Units::getLabel | ( | ) | const |
|
inline |