Scale
constructor(@FloatRange(from = MeasurementToolsConstants.minimumScaleValue ) valueFrom: Float, @NonNull unitFrom: Scale.UnitFrom, @FloatRange(from = MeasurementToolsConstants.minimumScaleValue ) valueTo: Float, @NonNull unitTo: Scale.UnitTo)
Creates an instance of a measurement Scale object.
Parameters
value From
: Float value to set source scale from.
unit From
: Unit to set the source scale from.
value To
: Float value to set the target scale to.
unit To
: Unit to set the target scale to.