    

 ## On this page

  

 

 # OpenTD.Dimension.SurfaceTension Class Reference

 Last update: 16.07.2025 

Inheritance diagram for OpenTD.Dimension.SurfaceTension:

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



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

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

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

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

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

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

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