Skip to main content

OpenTD reference 2026 R1

Class Dimensionless

Last update: 09.03.2026

Namespace: OpenTD.Dimension
Assembly: OpenTD.dll

[MessagePackObject(false)]
public class Dimensionless : IDimension

Inheritance

object ← Dimensionless

Implements

IDimension

Inherited Members

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

Methods

ConvertFromSI(double, UnitsData)

Converts x from SI to input units.

public double ConvertFromSI(double x, UnitsData units)

Parameters

x double

units UnitsData

Returns

double

ConvertToSI(UnitsData, double)

Converts x from input units to SI.

public double ConvertToSI(UnitsData units, double x)

Parameters

units UnitsData

x double

Returns

double

GetName()

Gets the name of the dimension, e.g., "Density".

public string GetName()

Returns

string

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

string

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

string

System.String.

Connect with Ansys