|
base
|
#include <Pressure.hpp>
Public Member Functions | |
| Pressure () | |
| float | toPa () const |
| float | toBar () const |
| float | toPSI () const |
Static Public Member Functions | |
| static Pressure | fromPascal (float pascal) |
| static Pressure | fromBar (float bar) |
| static Pressure | fromPSI (float psi) |
Public Attributes | |
| float | pascal |
Representation of a pressure value
It is internally normalized to a pressure in pascals (the SI unit for pressure), but provides accessors and initializers to convert to the most common pressure units (bar and PSI)
| base::Pressure::Pressure | ( | ) |
default constructor, which will initialize the value to unknown (NaN)
|
static |
Create a pressure object using a value in bars
|
static |
Create a pressure object using a value in pascals
|
static |
Create a pressure object using a value in PSI
| float base::Pressure::toBar | ( | ) | const |
Returns the raw pressure value in bar
| float base::Pressure::toPa | ( | ) | const |
Returns the raw pressure value in pascals
| float base::Pressure::toPSI | ( | ) | const |
Returns the raw pressure value in psi
| float base::Pressure::pascal |
Pressure in pascals
This is made public so that it can be used directly in Rock components. You usually should not access it, but instead use one of the initializers / accessors
1.8.13