Companion

object Companion

Properties

Link copied to clipboard
const val EQUIVALENCE_THRESHOLD: Double = 1.0E-12

The threshold for two measures to be considered equivalent if converted to the same unit. This is only needed due to floating-point error.

Functions

Link copied to clipboard
fun <U : Unit<U>> max(vararg measures: Measure<U>): Measure<U>?

Returns the measure with the absolute value closest to positive infinity.

Link copied to clipboard
fun <U : Unit<U>> min(vararg measures: Measure<U>): Measure<U>?

Returns the measure with the absolute value closest to negative infinity.