mut_minus

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


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