ofBaseUnits

fun <U : Unit<U>> ofBaseUnits(baseUnitMagnitude: Double, unit: Unit<U>): ImmutableMeasure<U>

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

Return

a new measure

Parameters

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