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
16
extern
"C"
{
17
#endif
18
25
/* Coordinate point */
26
struct
geodesy_coordinate
{
27
/* Latitude, scaled by 1e7 */
28
int32_t
latitude
;
29
/* Longitude, scaled by 1e7 */
30
int32_t
longitude
;
31
};
32
41
uint32_t
geodesy_great_circle_distance
(
struct
geodesy_coordinate
a,
struct
geodesy_coordinate
b);
42
47
#ifdef __cplusplus
48
}
49
#endif
50
51
#endif
/* INFUSE_SDK_INCLUDE_INFUSE_MATH_GEODESY_H_ */
geodesy_great_circle_distance
uint32_t geodesy_great_circle_distance(struct geodesy_coordinate a, struct geodesy_coordinate b)
Calculate the great-circle (shortest) distance between two locations.
geodesy_coordinate
Definition
geodesy.h:26
geodesy_coordinate::latitude
int32_t latitude
Definition
geodesy.h:28
geodesy_coordinate::longitude
int32_t longitude
Definition
geodesy.h:30
infuse
math
geodesy.h
Generated on Thu Sep 11 2025 11:38:52 for Infuse-IoT SDK API by
1.12.0