Class Units
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
celsiusfloatA 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
celsiusfloatA 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
fahrenheitfloatA temperature in degrees Fahrenheit.
Returns
- float
The temperature in degrees Celsius.
HectopascalsToPascals(float)
Converts hectopascals to pascals.
public static float HectopascalsToPascals(float hectopascals)
Parameters
hectopascalsfloatA pressure in hectopascals.
Returns
- float
The pressure in pascals.
KelvinToCelsius(float)
Converts kelvin to degrees Celsius.
public static float KelvinToCelsius(float kelvin)
Parameters
kelvinfloatA temperature in kelvin.
Returns
- float
The temperature in degrees Celsius.
KilopascalsToPascals(float)
Converts kilopascals to pascals.
public static float KilopascalsToPascals(float kilopascals)
Parameters
kilopascalsfloatA pressure in kilopascals.
Returns
- float
The pressure in pascals.
PascalsToHectopascals(float)
Converts pascals to hectopascals.
public static float PascalsToHectopascals(float pascals)
Parameters
pascalsfloatA pressure in pascals.
Returns
- float
The pressure in hectopascals.
PascalsToKilopascals(float)
Converts pascals to kilopascals.
public static float PascalsToKilopascals(float pascals)
Parameters
pascalsfloatA 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
pascalsfloatA 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
percentfloatThe percentage.
Returns
- float
The ratio.
PsiToPascals(float)
Converts pounds per square inch to pascals.
public static float PsiToPascals(float psi)
Parameters
psifloatA 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
ratiofloatThe ratio.
Returns
- float
The percentage.