mut_minus

open fun mut_minus(other: Measure<U>): MutableMeasure<U>

Subtracts another measurement to this one. This will mutate the object instead of generating a new measurement object.

Return

this measure

Parameters

other

the measurement to add


open fun mut_minus(magnitude: Double, unit: U): MutableMeasure<U>

Subtracts another measurement to this one. This will mutate the object instead of generating a new measurement object. This is a denormalized version of mut_minus to avoid having to wrap raw numbers in a Measure object and pay for an object allocation.

Return

this measure

Parameters

magnitude

the magnitude of the other measurement.

unit

the unit of the other measurement