OpenSim
OpenSim 3.1
|
A class implementing various units for measuring quantities. More...
#include <Units.h>
Public Types | |
enum | UnitType { UnknownUnits = 0, Radians, Degrees, Millimeters, Centimeters, Meters, Seconds, Milliseconds, Newtons } |
Public Member Functions | |
Units () | |
Units (const Units &aUnits) | |
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 Units & | aUnits | ) |
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 |