times

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

Multiplies this measure by a scalar unitless multiplier.

Return

the scaled result

Parameters

multiplier

the scalar multiplication factor


open operator fun <V : Unit<V>> times(other: Measure<V>): Mul<U, V>(source)

Multiplies this measure by another measure of a different type to create a compound unit. For example, Distance * Distance creates an area measurement, or Voltage * Time creates charge.

Subclasses can override this to return more specific types (e.g., LinearVelocity * Time → Distance).

Return

a Mul measurement representing the product of the two measures

Parameters

other

the other measure to multiply by

Type Parameters

V

the type of the other unit