    

 ## On this page

  

 

 # OpenTD.Dimension.Energy Class Reference

 Last update: 16.07.2025 

Inheritance diagram for OpenTD.Dimension.Energy:

 ![](/sites/default/files/migrate-content/opentd_refefence_net_8_2025_r2_doc_1/class_open_t_d_1_1_dimension_1_1_energy.png)



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

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

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

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

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

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

 string OpenTD.Dimension.Energy.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/OpenTD/OpenTD/Dimension/**Dimensional.cs**