ofRelativeUnits

fun <U : Unit<U>> ofRelativeUnits(relativeMagnitude: Double, unit: U): MutableMeasure<U>

Creates a new mutable measure in the given unit with a magnitude in terms of that unit.

Return

a new mutable measure

Parameters

the type of the units of measure
relativeMagnitude

the magnitude of the measure

unit

the unit of measure