|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_TOOLS_GEODESY_FUNCTIONS_H_
2 #define GENESIS_UTILS_TOOLS_GEODESY_FUNCTIONS_H_
135 #endif // include guard
Geographical coordinates in degrees.
std::ostream & operator<<(std::ostream &os, Color const &color)
Write a textual representation of the Color the a stream, in the format "(r, g, b,...
std::string sanitize_geo_coordinate(std::string const &coordinates, bool two_components)
Replace non-ascii symbols used in geographic coordinates by their ascii equivalents.
constexpr double EARTH_MEAN_RADIUS
Earth is not flat!
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
GeoCoordinate convert_geo_coordinate(std::string const &latitude, std::string const &longitude)
Parse strings of geographic coordinates.
double geo_distance(GeoCoordinate const &c1, GeoCoordinate const &c2)
Calculate the distance (in km) between two points on Earth.