API 4.4.1-2022-10-19-2c4045e59
For MATLAB, Python, Java, and C++ users
|
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 |
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 | ( | const Units & | aUnit | ) | const |
double OpenSim::Units::convertTo | ( | UnitType | aType | ) | const |
double OpenSim::Units::convertTo | ( | UnitType | aType, |
double | aValue | ||
) | const |
std::string OpenSim::Units::getAbbreviation | ( | ) | const |
std::string OpenSim::Units::getLabel | ( | ) | const |
|
inline |