    

 ## On this page

  

 

 # OpenTD.Dimension.Current Class Reference

 Last update: 16.07.2025 

Inheritance diagram for OpenTD.Dimension.Current:

 ![](/sites/default/files/migrate-content/opentd_net4_reference_2025_r2_1/class_open_t_d_1_1_dimension_1_1_current.png)



## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

double [ConvertFromSI](#a4ca7d4c6ca4dee6d612c4ba8f8d44815) (double x, [UnitsData](class_open_t_d_1_1_units_data.xhtml) units) Converts x from SI to input units.   
 double [ConvertToSI](#a75f2eb4882c35632b09fd09cf4fbf0a7) ([UnitsData](class_open_t_d_1_1_units_data.xhtml) units, double x) Converts x from input units to SI.   
 string [GetName](#ab97088eed4305b6c4fe3ed9c6d7ce02f) () Gets the name of the dimension, e.g., "Density".   
 string [GetUnitsName](#aa97f8a316efcff835d5c65f1b56f6ae6) ([UnitsData](class_open_t_d_1_1_units_data.xhtml) units) Gets the name of unit corresponding to this dimension, e.g. "kg/m3".   
 string [GetTitle](#a1be7a884a69a767a2725f5ddabecd2df) ([UnitsData](class_open_t_d_1_1_units_data.xhtml) units) Gets the name of the dimension and the unit, e.g., "Density (kg/m3)".   
## Member Function Documentation

<a id="a4ca7d4c6ca4dee6d612c4ba8f8d44815" name="a4ca7d4c6ca4dee6d612c4ba8f8d44815"></a>## [◆ ](#a4ca7d4c6ca4dee6d612c4ba8f8d44815)ConvertFromSI()

 double OpenTD.Dimension.Current.ConvertFromSI  ( double *x*,    [UnitsData](class_open_t_d_1_1_units_data.xhtml) *units* )  inline 

Converts x from SI to input units.

Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#afddcd70691fedb7f5e45b35ab591c2a5).





<a id="a75f2eb4882c35632b09fd09cf4fbf0a7" name="a75f2eb4882c35632b09fd09cf4fbf0a7"></a>## [◆ ](#a75f2eb4882c35632b09fd09cf4fbf0a7)ConvertToSI()

 double OpenTD.Dimension.Current.ConvertToSI  ( [UnitsData](class_open_t_d_1_1_units_data.xhtml) *units*,    double *x* )  inline 

Converts x from input units to SI.

Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#a47ad8f3b8708cb63cb89777b06affd5f).





<a id="ab97088eed4305b6c4fe3ed9c6d7ce02f" name="ab97088eed4305b6c4fe3ed9c6d7ce02f"></a>## [◆ ](#ab97088eed4305b6c4fe3ed9c6d7ce02f)GetName()

 string OpenTD.Dimension.Current.GetName  ( )   inline 

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

ReturnsSystem.String.Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#aeeb6edfa19e874001b5453f595995383).





<a id="a1be7a884a69a767a2725f5ddabecd2df" name="a1be7a884a69a767a2725f5ddabecd2df"></a>## [◆ ](#a1be7a884a69a767a2725f5ddabecd2df)GetTitle()

 string OpenTD.Dimension.Current.GetTitle  ( [UnitsData](class_open_t_d_1_1_units_data.xhtml) *units*)   inline 

Gets the name of the dimension and the unit, e.g., "Density (kg/m3)".

Parameters unitsThe units.ReturnsSystem.String.Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#a216ec184b866a2be2257c288c7960674).





<a id="aa97f8a316efcff835d5c65f1b56f6ae6" name="aa97f8a316efcff835d5c65f1b56f6ae6"></a>## [◆ ](#aa97f8a316efcff835d5c65f1b56f6ae6)GetUnitsName()

 string OpenTD.Dimension.Current.GetUnitsName  ( [UnitsData](class_open_t_d_1_1_units_data.xhtml) *units*)   inline 

Gets the name of unit corresponding to this dimension, e.g. "kg/m3".

Parameters unitsThe units.ReturnsSystem.String.Implements [OpenTD.Dimension.IDimension](interface_open_t_d_1_1_dimension_1_1_i_dimension.xhtml#a545ddcaa082f8f4d78c6e0c8176fcd02).





---

The documentation for this class was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/Dimension/**Dimensional.cs**