Table of Contents

Class Units

Namespace
Pamoja.Kit
Assembly
Pamoja.Kit.dll

Converts readings between the units a sensor reports and the ones a person reads.

public static class Units
Inheritance
Units
Inherited Members

Methods

CelsiusToFahrenheit(float)

Converts degrees Celsius to degrees Fahrenheit.

public static float CelsiusToFahrenheit(float celsius)

Parameters

celsius float

A temperature in degrees Celsius.

Returns

float

The temperature in degrees Fahrenheit.

CelsiusToKelvin(float)

Converts degrees Celsius to kelvin.

public static float CelsiusToKelvin(float celsius)

Parameters

celsius float

A temperature in degrees Celsius.

Returns

float

The temperature in kelvin.

FahrenheitToCelsius(float)

Converts degrees Fahrenheit to degrees Celsius.

public static float FahrenheitToCelsius(float fahrenheit)

Parameters

fahrenheit float

A temperature in degrees Fahrenheit.

Returns

float

The temperature in degrees Celsius.

HectopascalsToPascals(float)

Converts hectopascals to pascals.

public static float HectopascalsToPascals(float hectopascals)

Parameters

hectopascals float

A pressure in hectopascals.

Returns

float

The pressure in pascals.

KelvinToCelsius(float)

Converts kelvin to degrees Celsius.

public static float KelvinToCelsius(float kelvin)

Parameters

kelvin float

A temperature in kelvin.

Returns

float

The temperature in degrees Celsius.

KilopascalsToPascals(float)

Converts kilopascals to pascals.

public static float KilopascalsToPascals(float kilopascals)

Parameters

kilopascals float

A pressure in kilopascals.

Returns

float

The pressure in pascals.

PascalsToHectopascals(float)

Converts pascals to hectopascals.

public static float PascalsToHectopascals(float pascals)

Parameters

pascals float

A pressure in pascals.

Returns

float

The pressure in hectopascals.

PascalsToKilopascals(float)

Converts pascals to kilopascals.

public static float PascalsToKilopascals(float pascals)

Parameters

pascals float

A pressure in pascals.

Returns

float

The pressure in kilopascals.

PascalsToPsi(float)

Converts pascals to pounds per square inch.

public static float PascalsToPsi(float pascals)

Parameters

pascals float

A pressure in pascals.

Returns

float

The pressure in pounds per square inch.

PercentToRatio(float)

Converts a percentage to a ratio from 0 to 1.

public static float PercentToRatio(float percent)

Parameters

percent float

The percentage.

Returns

float

The ratio.

PsiToPascals(float)

Converts pounds per square inch to pascals.

public static float PsiToPascals(float psi)

Parameters

psi float

A pressure in pounds per square inch.

Returns

float

The pressure in pascals.

RatioToPercent(float)

Converts a ratio from 0 to 1 to a percentage.

public static float RatioToPercent(float ratio)

Parameters

ratio float

The ratio.

Returns

float

The percentage.