Temperature Type

Provides conversion between different temperature units.

Constructors

Constructor Description

Temperature(value, unit)

Full Usage: Temperature(value, unit)

Parameters:

value : float
unit : TemperatureRepresentation

Instance members

Instance member Description

this.ConvertTo

Full Usage: this.ConvertTo

Parameters:
Returns: Temperature

destUnit : TemperatureRepresentation
Returns: Temperature

this.InDegreeCelsius

Full Usage: this.InDegreeCelsius

Returns: float

Returns: float

this.InDegreeFahrenheit

Full Usage: this.InDegreeFahrenheit

Returns: float

Returns: float

this.InInverseKelvin

Full Usage: this.InInverseKelvin

Returns: float

Returns: float

this.InKelvin

Full Usage: this.InKelvin

Returns: float

Returns: float

this.InSIUnits

Full Usage: this.InSIUnits

Returns: float

Returns: float

this.InUnitsOf

Full Usage: this.InUnitsOf

Parameters:
Returns: float

destUnit : TemperatureRepresentation
Returns: float

this.Unit

Full Usage: this.Unit

Returns: TemperatureRepresentation

Returns: TemperatureRepresentation

this.Value

Full Usage: this.Value

Returns: float

Returns: float

Static members

Static member Description

Temperature.FromKelvinTo(srcValueInKelvin, destinationUnit)

Full Usage: Temperature.FromKelvinTo(srcValueInKelvin, destinationUnit)

Parameters:
Returns: float

srcValueInKelvin : float
destinationUnit : TemperatureRepresentation
Returns: float

Temperature.FromTo(srcValue, srcUnit, destUnit)

Full Usage: Temperature.FromTo(srcValue, srcUnit, destUnit)

Parameters:
Returns: float

srcValue : float
srcUnit : TemperatureRepresentation
destUnit : TemperatureRepresentation
Returns: float

Temperature.ToEnergySI(srcValue, srcUnit)

Full Usage: Temperature.ToEnergySI(srcValue, srcUnit)

Parameters:
Returns: float Energy kB*T in Joule, where kB is the BOLTZMANN constant and T the temperature in Kelvin.

Returns the energy corresponding to the provided temperature in Joule.

srcValue : float

Temperature value.

srcUnit : TemperatureRepresentation

Temperature unit.

Returns: float

Energy kB*T in Joule, where kB is the BOLTZMANN constant and T the temperature in Kelvin.

Temperature.ToKelvin(srcValue, srcUnit)

Full Usage: Temperature.ToKelvin(srcValue, srcUnit)

Parameters:
Returns: float

srcValue : float
srcUnit : TemperatureRepresentation
Returns: float