convert

fun <T : Dimension> Double.convert(from: T, to: T): Double

Converts a Double from one unit to another of the same dimension.