Simox  2.3.74.0
VirtualRobot::Units Class Reference

Public Types

enum  UnitsType {
  eAngle, eLength, eWeight, eTime,
  eIgnore
}
 

Public Member Functions

 Units (const std::string &unitName)
 
bool isRadian ()
 
bool isDegree ()
 
bool isAngle ()
 
float toRadian (float m)
 
float toDegree (float m)
 
bool isMillimeter ()
 
bool isMeter ()
 
bool isLength ()
 
float toMillimeter (float m)
 
float toMeter (float m)
 
bool isGram ()
 
bool isKilogram ()
 
bool isTon ()
 
bool isWeight ()
 
float toGram (float m)
 
float toKilogram (float m)
 
float toTon (float m)
 
bool isSecond ()
 
bool isMinute ()
 
bool isHour ()
 
bool isTime ()
 
float toSecond (float m)
 
float toMinute (float m)
 
float toHour (float m)
 
bool isValid ()
 

Member Enumeration Documentation

◆ UnitsType

Enumerator
eAngle 
eLength 
eWeight 
eTime 
eIgnore 

Constructor & Destructor Documentation

◆ Units()

VirtualRobot::Units::Units ( const std::string &  unitName)
inline

Member Function Documentation

◆ isAngle()

bool VirtualRobot::Units::isAngle ( )
inline

◆ isDegree()

bool VirtualRobot::Units::isDegree ( )
inline

◆ isGram()

bool VirtualRobot::Units::isGram ( )
inline

◆ isHour()

bool VirtualRobot::Units::isHour ( )
inline

◆ isKilogram()

bool VirtualRobot::Units::isKilogram ( )
inline

◆ isLength()

bool VirtualRobot::Units::isLength ( )
inline

◆ isMeter()

bool VirtualRobot::Units::isMeter ( )
inline

◆ isMillimeter()

bool VirtualRobot::Units::isMillimeter ( )
inline

◆ isMinute()

bool VirtualRobot::Units::isMinute ( )
inline

< be careful m==meter!

◆ isRadian()

bool VirtualRobot::Units::isRadian ( )
inline

◆ isSecond()

bool VirtualRobot::Units::isSecond ( )
inline

◆ isTime()

bool VirtualRobot::Units::isTime ( )
inline

◆ isTon()

bool VirtualRobot::Units::isTon ( )
inline

◆ isValid()

bool VirtualRobot::Units::isValid ( )
inline

◆ isWeight()

bool VirtualRobot::Units::isWeight ( )
inline

◆ toDegree()

float VirtualRobot::Units::toDegree ( float  m)
inline

◆ toGram()

float VirtualRobot::Units::toGram ( float  m)
inline

◆ toHour()

float VirtualRobot::Units::toHour ( float  m)
inline

◆ toKilogram()

float VirtualRobot::Units::toKilogram ( float  m)
inline

◆ toMeter()

float VirtualRobot::Units::toMeter ( float  m)
inline

◆ toMillimeter()

float VirtualRobot::Units::toMillimeter ( float  m)
inline

◆ toMinute()

float VirtualRobot::Units::toMinute ( float  m)
inline

◆ toRadian()

float VirtualRobot::Units::toRadian ( float  m)
inline

◆ toSecond()

float VirtualRobot::Units::toSecond ( float  m)
inline

◆ toTon()

float VirtualRobot::Units::toTon ( float  m)
inline