    

 ## On this page

  

 

 # OpenTD.Dimension.EnergyPerLength Class Reference

 Last update: 16.07.2025 

Inheritance diagram for OpenTD.Dimension.EnergyPerLength:

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



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

double [ConvertFromSI](#a78014b2917c00792fa7263d2ab3e1715) (double x, [UnitsData](class_open_t_d_1_1_units_data.xhtml) units) Converts x from SI to input units.   
 double [ConvertToSI](#a1f9b7fc9fa88e9d1d7ab486082c483e7) ([UnitsData](class_open_t_d_1_1_units_data.xhtml) units, double x) Converts x from input units to SI.   
 string [GetName](#aca8e035cc24dbf38abfeccb41ba2d5f5) () Gets the name of the dimension, e.g., "Density".   
 string [GetUnitsName](#a59c84d2d51a7e8c153838cfd8dabd1e0) ([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](#aa4b227d88140d3252d77c04b3e4f55c4) ([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="a78014b2917c00792fa7263d2ab3e1715" name="a78014b2917c00792fa7263d2ab3e1715"></a>## [◆ ](#a78014b2917c00792fa7263d2ab3e1715)ConvertFromSI()

 double OpenTD.Dimension.EnergyPerLength.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="a1f9b7fc9fa88e9d1d7ab486082c483e7" name="a1f9b7fc9fa88e9d1d7ab486082c483e7"></a>## [◆ ](#a1f9b7fc9fa88e9d1d7ab486082c483e7)ConvertToSI()

 double OpenTD.Dimension.EnergyPerLength.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="aca8e035cc24dbf38abfeccb41ba2d5f5" name="aca8e035cc24dbf38abfeccb41ba2d5f5"></a>## [◆ ](#aca8e035cc24dbf38abfeccb41ba2d5f5)GetName()

 string OpenTD.Dimension.EnergyPerLength.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="aa4b227d88140d3252d77c04b3e4f55c4" name="aa4b227d88140d3252d77c04b3e4f55c4"></a>## [◆ ](#aa4b227d88140d3252d77c04b3e4f55c4)GetTitle()

 string OpenTD.Dimension.EnergyPerLength.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="a59c84d2d51a7e8c153838cfd8dabd1e0" name="a59c84d2d51a7e8c153838cfd8dabd1e0"></a>## [◆ ](#a59c84d2d51a7e8c153838cfd8dabd1e0)GetUnitsName()

 string OpenTD.Dimension.EnergyPerLength.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**