UnitConvertor.convert

Converts from in unit to out unit

  1. LinearFunction convert(string inUnit, string outUnit)
    class UnitConvertor
    const
    convert
    (
    string inUnit
    ,
    string outUnit
    )
  2. double convert(double value, string inUnit, string outUnit, double defaultValue)

Parameters

inUnit string

unit to convert from

outUnit string

unit to convert to

Return Value

LinearFunction object containing conversion from in to out unit

Meta