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
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/* Coordinate point */
27 /* Latitude, scaled by 1e7 */
28 int32_t latitude;
29 /* Longitude, scaled by 1e7 */
30 int32_t longitude;
31};
32
42
47#ifdef __cplusplus
48}
49#endif
50
51#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.
Definition geodesy.h:26
int32_t latitude
Definition geodesy.h:28
int32_t longitude
Definition geodesy.h:30