ofBaseUnits

open fun <U : Unit<U>?> ofBaseUnits(baseUnitMagnitude: Double, unit: U): MutableMeasure<U>

Creates a new mutable measure in the given unit with a magnitude equal to the given one in base units.

Return

a new mutable measure

Parameters

<U>

the type of the units of measure

baseUnitMagnitude

the magnitude of the measure, in terms of the base unit of measure

unit

the unit of measure