diff options
| author | sam-anthony <samanthony6@protonmail.com> | 2022-03-26 14:11:15 -0230 |
|---|---|---|
| committer | sam-anthony <samanthony6@protonmail.com> | 2022-03-26 14:11:15 -0230 |
| commit | 16235e23bda445f0bd0b664c3738c77e786a1cbf (patch) | |
| tree | f29c46905f3afe65cf15a425f270165282620095 /pressure.go | |
| parent | e8c878f4236c056b1c0c9308e2d49c5b23833963 (diff) | |
| download | volute-16235e23bda445f0bd0b664c3738c77e786a1cbf.zip | |
more datapoints and parameters
Diffstat (limited to 'pressure.go')
| -rw-r--r-- | pressure.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pressure.go b/pressure.go index f486552..74f035d 100644 --- a/pressure.go +++ b/pressure.go @@ -48,6 +48,10 @@ type pressure struct { unit pressureUnit } +func newPressure() pressure { + return pressure{100, defaultPressureUnit} +} + func (p pressure) asUnit(u pressureUnit) float32 { pa := p.val * float32(p.unit) // Convert to pascals. return pa / float32(u) // Convert to desired unit. |