invertFromHeightUnits

fun <T : Any> invertFromHeightUnits(value: T, units: HeightUnits, cls: Class<T>): Float

Convert height and length values of body measurements from units to cm

Return

converted value in cm

See also

Parameters

value

value in defined units

units

units to convert from

cls

class of value

T

type of value

Throws

when units and class defined incorrectly