Skip to main content
Namespace: OpenTD.Dimension
Assembly: OpenTD.dll
Dimensionals represent dimensional quantities, like endTime or initialTemperature. When set or get, dimensional values reflect the current Units.WorkingUnits system. For example, if you set WorkingUnits.temp to C, then set a Dimensional{Temperature} to 0, then set WorkingUnits.temp to F, the Dimensional would now return 32. Dimensionals implicitly convert to/from doubles.

Type Parameters

T

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType()

Constructors

Dimensional(double)

Parameters

x double

Dimensional(double, UnitsData)

Parameters

x double inputUnits UnitsData

Methods

GetValueSI()

Returns

double

ToString()

Returns the fully qualified type name of this instance.

Returns

string The fully qualified type name.

Operators

implicit operator Dimensional<T>(double)

Parameters

x double

Returns

Dimensional<T>

implicit operator double(Dimensional<T>)

Parameters

x Dimensional<T>

Returns

double