Struct Temperature
A temperature
Namespace: Scripting
Syntax
public struct Temperature
Properties
InCelsius
Gets the temperature in celsius.
Declaration
public double InCelsius { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
FromCelsius(Double)
Construct a temperature from degrees celsius
Declaration
public static Temperature FromCelsius(double temp)
Parameters
Type | Name | Description |
---|---|---|
System.Double | temp | The temperature. |
Returns
Type | Description |
---|---|
Temperature | A new temperature object |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
System.ValueType.ToString()
Operators
Implicit(Temperature to Double)
Performs an implicit conversion from Temperature to System.Double.
Declaration
public static implicit operator double (Temperature temp)
Parameters
Type | Name | Description |
---|---|---|
Temperature | temp | The temperature. |
Returns
Type | Description |
---|---|
System.Double | The result of the conversion. |