|
constexpr | GeoPosition (bool endPoint) |
|
constexpr | GeoPosition (double latitude, double longitude, bool rad=false) |
| Create a geographic position. More...
|
|
GeoPosition constexpr | toRadians () const |
| Convert the position from degrees to radians. More...
|
|
GeoPosition constexpr | toDegrees () const |
| Convert the position from radians to degrees. More...
|
|
double | distance (const GeoPosition &other) const |
| Computer the Great Circle distance between this GeoPosition and another. More...
|
|
GeoPosition | midpoint (const GeoPosition &other, double distance, double fraction=0.5) const |
| Find a mid-point on the Great Circle between this GeoPosition and another. More...
|
|
GeoPosition | midpoint (const GeoPosition &other, double fraction=0.5) const |
| Find a mid-point on the Great Circle between this GeoPosition and another. More...
|
|
std::ostream & | printOn (std::ostream &strm) const |
|
constexpr | GeoPosition (double lat, double lon) noexcept |
|
constexpr | GeoPosition (std::tuple< double, double > geo) |
|
GeoPosition & | operator= (const std::tuple< double, double > &geo) |
|
GeoPosition | radians () const |
|
constexpr double & | lat () noexcept |
|
constexpr double & | lon () noexcept |
|
constexpr double | lat () const noexcept |
|
constexpr double | lon () const noexcept |
|
An abstraction of a geographic position.
A geographic position holding Latitude and Longitude.