times

open operator fun times(multiplier: Double): Measure<U>

Multiplies this measurement by some constant multiplier and returns the result. The magnitude of the result will be the base magnitude multiplied by the scalar value. If the measure uses a unit with a non-linear relation to its base unit (such as Fahrenheit for temperature), then the result will only be a multiple in terms of the base unit.

Return

the resulting measure

Parameters

multiplier

the constant to multiply by


open operator fun <U2 : Unit<U2>> times(other: Measure<U2>): Measure<*>

Generates a new measure that is equal to this measure multiplied by another. Some dimensional analysis is performed to reduce the units down somewhat; for example, multiplying a Measure<Time> by a Measure<Velocity<Distance>> will return just a Measure<Distance> instead of the naive Measure<Mult<Time, Velocity<Distance>>. This is not guaranteed to perform perfect dimensional analysis.

Return

the multiplicative unit

Parameters

the type of the other measure to multiply by
other

the unit to multiply by