UnitConverters

Wisej.Hybrid.Shared.Converters.UnitConverters

Namespace: Wisej.Hybrid.Shared.Converters

Assembly: Wisej.Hybrid (3.5.0.0)

Static class with built-in unit converters.

public class UnitConverters

Methods

Converts Atmospheres to Pascals.

ParameterTypeDescription

atm

The value in Atmospheres convert.

Returns: Double. The value from atm in Pascals.

Converts temperatures from Celsius to Fahrenheit.

ParameterTypeDescription

celsius

The value in Celcius to convert.

Returns: Double. The value from celsius in degrees Fahrenheit.

Converts temperatures from Celsius to Kelvin.

ParameterTypeDescription

celsius

The value in Celcius to convert.

Returns: Double. The value from celsius in degrees Kelvin.

Calculates the distance between two coordinates in kilometers.

ParameterTypeDescription

lat1

First latitude.

lon1

First longitude.

lat2

Second latitude.

lon2

Second longitude.

Returns: Double. The distance in kilometers.

Calculates the distance between two coordinates in miles.

ParameterTypeDescription

lat1

First latitude.

lon1

First longitude.

lat2

Second latitude.

lon2

Second longitude.

Returns: Double. The distance in miles.

Converts degrees per second to hertz.

ParameterTypeDescription

degrees

The value in degrees per second to convert.

Returns: Double. The value from degrees in hertz.

Converts degrees per second to radians per second.

ParameterTypeDescription

degrees

The value in degrees per second to convert.

Returns: Double. The value from degrees in radians per second.

Converts degrees to radian.

ParameterTypeDescription

degrees

The value in degrees to convert.

Returns: Double. The value from degrees in radian.

Converts temperatures from Fahrenheit to Celsius.

ParameterTypeDescription

fahrenheit

The value in Fahrenheit to convert.

Returns: Double. The value from fahrenheit in degrees Celsius.

Converts Kilopascals to Hectopascals.

ParameterTypeDescription

hpa

The value in Hectopascals convert.

Returns: Double. The value from hpa in Kilopascals.

Converts Hectopascals to Pascals.

ParameterTypeDescription

hpa

The value in Hectopascals convert.

Returns: Double. The value from hpa in Pascals.

Converts hertz to degrees per second.

ParameterTypeDescription

hertz

The value in degrees per second to convert.

Returns: Double. The value from hertz in degrees per second.

Converts hertz to radians per second.

ParameterTypeDescription

hertz

The value in radians per second to convert.

Returns: Double. The value from hertz in radians per second.

International survey foot defined as exactly 0.3048 meters by convention in 1959. This is the most common modern foot measure.

ParameterTypeDescription

internationalFeet

Returns: Double.

Converts temperatures from Kelvin to Celsius.

ParameterTypeDescription

kelvin

The value in Kelvin to convert.

Returns: Double. The value from kelvin in degrees Celcius.

Converts kilograms to pounds.

ParameterTypeDescription

kilograms

The value in kilograms to convert.

Returns: Double. The value from kilograms in pounds.

Converts distances from kilometers to miles.

ParameterTypeDescription

kilometers

The value in kilometers to convert.

Returns: Double. The value from kilometers in miles.

Converts Kilopascals to Hectopascals.

ParameterTypeDescription

kpa

The value in Kilopascals convert.

Returns: Double. The value from kpa in Hectopascals.

Converts Kilopascals to Pascals.

ParameterTypeDescription

kpa

The value in Kilopascals convert.

Returns: Double. The value from kpa in Pascals.

International survey foot defined as exactly 0.3048 meters by convention in 1959. This is the most common modern foot measure.

ParameterTypeDescription

meters

Returns: Double.

Exactly 1200/3937 meters by definition. In decimal terms approximately 0.304 800 609 601 219 meters. Variation from the common international foot of exactly 0.3048 meters may only be considerable over large survey distances.

ParameterTypeDescription

meters

Returns: Double.

Converts distances from miles to kilometers.

ParameterTypeDescription

miles

The value in miles to convert.

Returns: Double. The value from miles in kilometers.

Converts distances from miles to meters.

ParameterTypeDescription

miles

The value in miles to convert.

Returns: Double. The value from miles in meters.

Converts Pascals to Atmospheres.

ParameterTypeDescription

pascals

The value in Pascals convert.

Returns: Double. The value from pascals in Atmospheres.

Converts pounds to kilograms.

ParameterTypeDescription

pounds

The value in pounds to convert.

Returns: Double. The value from pounds in kilograms.

Converts pounds to stones.

ParameterTypeDescription

pounds

The value in pounds to convert.

Returns: Double. The value from pounds in stones.

Converts radians per second to degrees per second.

ParameterTypeDescription

radians

The value in radians per second to convert.

Returns: Double. The value from radians in degrees per second.

Converts radians per second to hertz.

ParameterTypeDescription

radians

The value in radians per second to convert.

Returns: Double. The value from radians in hertz.

Converts radians to degrees.

ParameterTypeDescription

radians

The value in radians to convert.

Returns: Double. The value from radians in degrees.

Converts stones to pounds.

ParameterTypeDescription

stones

The value in stones to convert.

Returns: Double. The value from stones in pounds.

Exactly 1200/3937 meters by definition. In decimal terms approximately 0.304 800 609 601 219 meters. Variation from the common international foot of exactly 0.3048 meters may only be considerable over large survey distances.

ParameterTypeDescription

usFeet

Returns: Double.

Last updated