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