withSign

open fun withSign(other: Measure<U>, unit: U): Double(source)

Take the sign of another measure.

Return

the value of the measure in the given unit with the sign of the provided measure

Parameters

other

measure from which to take sign

unit

unit to use


open fun withSign(other: Measure<U>): Measure<U>(source)

Take the sign of another measure. This measure's and the provided measure's signs are considered in this measure's unit.

Return

the value of the measure with the sign of the provided measure

Parameters

other

measure from which to take sign