    

 ## On this page

  

 

 # OpenTD.Dimension.PressurePerVolume Class Reference

 Last update: 16.07.2025 

Inheritance diagram for OpenTD.Dimension.PressurePerVolume:

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



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

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

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

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

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

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

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