diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-03-01 15:11:35 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-03-01 15:11:35 -0500 |
| commit | 0d05cb75ee3c3d85481fe87ea287c97a439fe47a (patch) | |
| tree | 8603e4ac9d3a58715690643862d27ed769347b8d /unit.h | |
| parent | 47874c2ec00339314e43d282ab2bc906e9c9ac9b (diff) | |
| download | volute-0d05cb75ee3c3d85481fe87ea287c97a439fe47a.zip | |
temperature conversion functions
Diffstat (limited to 'unit.h')
| -rw-r--r-- | unit.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -34,6 +34,20 @@ double as_bar(Pressure x); double as_psi(Pressure x); +typedef double Temperature; +typedef Temperature (*TemperatureMaker)(double); +typedef double (*TemperatureReader)(Temperature); + +Temperature kelvin(double x); +Temperature celsius(double x); +Temperature fahrenheit(double x); +Temperature rankine(double x); +double as_kelvin(Temperature t); +double as_celsius(Temperature t); +double as_fahrenheit(Temperature t); +double as_rankine(Temperature t); + + typedef double Volume; typedef Volume (*VolumeMaker)(double); typedef double (*VolumeReader)(Volume); |