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

valueFrom

: Float value to set source scale from.

unitFrom

: Unit to set the source scale from.

valueTo

: Float value to set the target scale to.

unitTo

: Unit to set the target scale to.