convertToHeightUnits

fun <T> convertToHeightUnits(cmValue: Float, units: HeightUnits, cls: Class<T>): T

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

Return

converted value in units

See also

Parameters

cmValue

value in cm

units

unit to convert to

cls

class of converted value

T

type of converted value

Throws

when units and class defined incorrectly