derive

open fun <U : Unit<U>?> derive(@NonNull unit: Unit<U>): UnitBuilder<U>

Creates a new unit builder object based on a given input unit. The builder can be used to fluently describe a new unit in terms of its relation to the base unit.

Return

a builder object

Parameters

unit

the base unit from which to derive a new unit

<U>

the dimension of the unit to derive