Assembly: OpenTD.dll Represents a physical dimension, e.g., density
Methods
ConvertFromSI(double, UnitsData)
Converts x from SI to input units.Parameters
x double
units UnitsData
Returns
doubleConvertToSI(UnitsData, double)
Converts x from input units to SI.Parameters
units UnitsData
x double
Returns
doubleGetName()
Gets the name of the dimension, e.g., “Density”.Returns
string System.String.GetTitle(UnitsData)
Gets the name of the dimension and the unit, e.g., “Density (kg/m3)”.Parameters
units UnitsData
The units.
Returns
string System.String.GetUnitsName(UnitsData)
Gets the name of unit corresponding to this dimension, e.g. “kg/m3”.Parameters
units UnitsData
The units.