#include <quetzal/geography/coordinates.hpp>
Geographic coordinates.
Geographic coordinates (longitude and latitude) in decimal degree.
|
using | decimal_degree = double |
|
|
constexpr | lonlat (decimal_degree longitude, decimal_degree latitude) noexcept |
| Constructor.
|
|
template<class T > |
constexpr mp_units::quantity< mp_units::si::metre > | great_circle_distance_to (const T &other) const noexcept |
| Compute great-circle distance between two points on the Earth.
|
|
|
decimal_degree | lon |
| Longitude.
|
|
decimal_degree | lat |
| Latitude.
|
|
◆ great_circle_distance_to()
template<class T >
constexpr mp_units::quantity< mp_units::si::metre > quetzal::geography::lonlat::great_circle_distance_to |
( |
const T & |
other | ) |
const |
|
inlineconstexprnoexcept |
Compute great-circle distance between two points on the Earth.
Compute the great circle distance (in kilometers) from this point to an other coordinate.
- Template Parameters
-
- Parameters
-
other | the other coordinate |
- Returns
- the distance in kilometers
- Invariant
- The returned distance is not negative.
The documentation for this struct was generated from the following file:
- /home/runner/work/quetzal-CoaTL/quetzal-CoaTL/src/include/quetzal/geography/coordinates.hpp