Companion

object Companion

Functions

Link copied to clipboard
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.

Link copied to clipboard
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.