Go to the documentation of this file.
29 template <
typename ValueT>
32 return meter * _meterToMilli;
36 template <
typename ValueT>
39 return millimeter / _meterToMilli;
45 float _meterToMilli = 1000;
float meterToMilli() const
Get the scaling factor for: millimeter = meter * factor.
void disable()
Set scaling of meter to millimeter to 1.
float milliToMeter() const
Get the scaling factor for: meter = millimeter * factor.
void setEnabled(bool enabled)
Enable or disable length scaling.
LengthScaling()
Constructor. Enables scaling.
ValueT milliToMeter(const ValueT &millimeter) const
Scale the given millimeter value to meter.
void enable()
Set scaling of meter to millimeter to 1000.
ValueT meterToMilli(const ValueT &meter) const
Scale the given meter value to millimeter.
This file offers overloads of toIce() and fromIce() functions for STL container types.