Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
geodesy.h
Go to the documentation of this file.
1
9
10#ifndef INFUSE_SDK_INCLUDE_INFUSE_MATH_GEODESY_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_MATH_GEODESY_H_
12
13#include <stdint.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
25
29 int32_t latitude;
31 int32_t longitude;
32};
33
43
47
48#ifdef __cplusplus
49}
50#endif
51
52#endif /* INFUSE_SDK_INCLUDE_INFUSE_MATH_GEODESY_H_ */
uint32_t geodesy_great_circle_distance(struct geodesy_coordinate a, struct geodesy_coordinate b)
Calculate the great-circle (shortest) distance between two locations.
Coordinate point.
Definition geodesy.h:27
int32_t latitude
Latitude, scaled by 1e7.
Definition geodesy.h:29
int32_t longitude
Longitude, scaled by 1e7.
Definition geodesy.h:31