LengthScaling.cpp
Go to the documentation of this file.
1#include "LengthScaling.h"
2
3
4using namespace armarx;
5
10
11void
16
17void
22
23void
25{
26 _meterToMilli = enabled ? 1000 : 1;
27}
28
29float
31{
32 return _meterToMilli;
33}
34
35float
37{
38 return 1 / _meterToMilli;
39}
void setEnabled(bool enabled)
Enable or disable length scaling.
void enable()
Set scaling of meter to millimeter to 1000.
float milliToMeter() const
Get the scaling factor for: meter = millimeter * factor.
void disable()
Set scaling of meter to millimeter to 1.
LengthScaling()
Constructor. Enables scaling.
float meterToMilli() const
Get the scaling factor for: millimeter = meter * factor.
This file offers overloads of toIce() and fromIce() functions for STL container types.