Dynamical System Framework
Loading...
Searching...
No Matches
dsf::geometry Namespace Reference

Geometric primitives: points and polylines. More...

Classes

class  Point
class  PolyLine
 A polyline represented as a vector of Points. More...

Functions

double haversine_km (Point const &p1, Point const &p2) noexcept
 Compute the Haversine distance between two geographic points.

Detailed Description

Geometric primitives: points and polylines.

Function Documentation

◆ haversine_km()

double dsf::geometry::haversine_km ( Point const & p1,
Point const & p2 )
noexcept

Compute the Haversine distance between two geographic points.

Parameters
p1The first point (longitude, latitude)
p2The second point (longitude, latitude)
Returns
The distance in kilometers.