BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
bst::geo Namespace Reference

Classes

class  Path
 A path of geographical points. More...
 
class  Point
 A geographical point. More...
 

Functions

double distance (const Point &point_a, const Point &point_b)
 Get the distance between two points in kilometers. More...
 

Variables

constexpr double EARTH_RADIUS_KM = 6378.1370
 

Function Documentation

◆ distance()

double bst::geo::distance ( const Point point_a,
const Point point_b 
)

Get the distance between two points in kilometers.

Parameters
point_aThe first point.
point_bThe second point.
Returns
double The distance between the two points in kilometers.

References bst::math::D2R, bst::geo::Point::latitude(), and bst::geo::Point::longitude().

Referenced by bst::geo::Path::distance(), and TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ EARTH_RADIUS_KM

constexpr double bst::geo::EARTH_RADIUS_KM = 6378.1370
inlineconstexpr