Class Current
Last update: 09.03.2026Namespace: OpenTD.Dimension
Assembly: OpenTD.dll
public class Current : IDimension
Inheritance
Implements
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.
public double ConvertFromSI(double x, UnitsData units)
Parameters
x double
units UnitsData
Returns
ConvertToSI(UnitsData, double)
Converts x from input units to SI.
public double ConvertToSI(UnitsData units, double x)
Parameters
units UnitsData
x double
Returns
GetName()
Gets the name of the dimension, e.g., "Density".
public string GetName()
Returns
System.String.
GetTitle(UnitsData)
Gets the name of the dimension and the unit, e.g., "Density (kg/m3)".
public string GetTitle(UnitsData units)
Parameters
units UnitsData
The units.
Returns
System.String.
GetUnitsName(UnitsData)
Gets the name of unit corresponding to this dimension, e.g. "kg/m3".
public string GetUnitsName(UnitsData units)
Parameters
units UnitsData
The units.
Returns
System.String.