mut_plus

Adds 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_plus(magnitude: Double, unit: U): MutableMeasure<U>

Adds another measurement to this one. This will mutate the object instead of generating a new measurement object. This is a denormalized version of mut_plus 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