aboutsummaryrefslogtreecommitdiffstats
path: root/src/pressure.rs
blob: f7461865283fdacaf3c40edec6c6714ef9ce5bd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
pub struct Pressure(f64); // Base unit is pascals

impl Pressure {
    pub fn from_pascals(pascals: f64) -> Self {
        Self(pascals)
    }

    pub fn as_pascals(&self) -> f64 {
        self.0
    }
}