ofRelativeUnits

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

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

Return

a new measure

Parameters

the type of the units of measure
relativeMagnitude

the magnitude of the measure

unit

the unit of measure