KitchenDraw SDK 2
Show / Hide Table of Contents

Method UnitConvert

UnitConvert(UnitType, UnitType, double)

Converts value in source units to an equal value in destination units.

Declaration
public static double UnitConvert(Appli.UnitType sourceUnit, Appli.UnitType destUnit, double sourceValue)
Parameters
Type Name Description
Appli.UnitType sourceUnit

The unit in which source value is given.

Appli.UnitType destUnit

The unit in which a new value should be returned.

double sourceValue

Value to convert.

Returns
Type Description
double

Equal value in destination units.

In this article
Back to top Generated by DocFX