Skip to main content
Namespace: OpenTD.Dimension
Assembly: OpenTD.dll

Inheritance

object ← Gravity

Implements

IDimension

Inherited Members

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

Methods

ConvertFromSI(double, UnitsData)

Converts x from SI to input units.

Parameters

x double units UnitsData

Returns

double

ConvertToSI(UnitsData, double)

Converts x from input units to SI.

Parameters

units UnitsData x double

Returns

double

GetName()

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.

Returns

string System.String.