API  4.3
For MATLAB, Python, Java, and C++ users
OpenSim::Units Class Reference

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
 

Detailed Description

A class implementing various units for measuring quantities.

Author
Peter Loan
Version
1.0

Constructor & Destructor Documentation

◆ Units() [1/3]

OpenSim::Units::Units ( )

◆ Units() [2/3]

OpenSim::Units::Units ( const std::string  aString)

◆ Units() [3/3]

OpenSim::Units::Units ( UnitType  aType)

◆ ~Units()

virtual OpenSim::Units::~Units ( )
virtual

Member Function Documentation

◆ convertTo() [1/3]

double OpenSim::Units::convertTo ( UnitType  aType,
double  aValue 
) const

◆ convertTo() [2/3]

double OpenSim::Units::convertTo ( UnitType  aType) const

◆ convertTo() [3/3]

double OpenSim::Units::convertTo ( const Units aUnit) const

◆ getAbbreviation()

std::string OpenSim::Units::getAbbreviation ( ) const

◆ getLabel()

std::string OpenSim::Units::getLabel ( ) const

◆ getType()

UnitType OpenSim::Units::getType ( ) const
inline

Member Enumeration Documentation

◆ UnitType

Enumerator
UnknownUnits 
Radians 
Degrees 
Millimeters 
Centimeters 
Meters 
Seconds 
Milliseconds 
Newtons 

The documentation for this class was generated from the following file: