Loading...
Searching...
No Matches
wind.h
Go to the documentation of this file.
1
7#pragma once
8
13
28
38int wind_from_kmh(int kmh, WindUnit unit);
39
46const char *wind_unit_label(WindUnit unit);
47
int wind_from_kmh(int kmh, WindUnit unit)
Convert a km/h wind speed into the chosen unit.
Definition wind.c:9
WindUnit
Which unit a wind speed reads out in.
Definition wind.h:21
const char * wind_unit_label(WindUnit unit)
The short label for a wind unit.
Definition wind.c:20
@ WIND_UNIT_MPH
miles per hour
Definition wind.h:23
@ WIND_UNIT_KTS
knots
Definition wind.h:24
@ WIND_UNIT_COUNT
how many units there are, not a unit itself
Definition wind.h:26
@ WIND_UNIT_KMH
kilometres per hour
Definition wind.h:22
@ WIND_UNIT_MS
metres per second
Definition wind.h:25