geo
Classes
Enumerations
NFZType
Functions
haversine_distance_meters
inline
Parameters
-
p1First geographic point -
p2Second geographic point
Returns
Distance in meters between the two points Returns 0.0 if both points are identical Returns approximately 20,000,000 meters for antipodal points :::note Uses Earth radius of 6,371,000 meters (mean radius) ::: :::note Accuracy degrades for very large distances due to Earth’s ellipsoidal shape :::Example:
is_point_in_polygon
inline
Parameters
-
pointThe point to check -
verticesPolygon vertices
Returns
true if point is inside the polygonsegment_intersects_polygon
inline
Parameters
-
segmentThe line segment -
polygonThe polygon vertices
Returns
true if segment might intersect polygonpath_intersects_nfz
inline
Parameters
-
fromStarting point -
toEnding point -
nfz_listList of no-fly zones to check against
Returns
Pointer to the NFZ that the path intersects, or nullopt if clearpath_intersects_nfz
inline
Parameters
-
waypointsList of waypoints defining the path -
nfz_listList of no-fly zones