Companion

object Companion

Functions

Link copied to clipboard
fun <U : Unit<U>> mutable(measure: Measure<U>): MutableMeasure<U>

Creates a new mutable measure that is a copy of the given one.

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

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

Link copied to clipboard
fun <U : Unit<U>> zero(unit: U): MutableMeasure<U>

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