Companion

object Companion

Functions

Link copied to clipboard
infix fun <U : Unit<U>> Unit<U>.from(conversion: Pair<Double, Unit<U>>): Double

Converts a magnitude in terms of this unit to a magnitude in terms of another unit of the same dimension.

Link copied to clipboard
infix fun <U : Unit<U>> Number.of(unit: Unit<U>): Measure<U>

Creates a new measure of this unit with the given value. The resulting measure is immutable and cannot have its value modified.