Files
comaps/geometry/oblate_spheroid.hpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

13 lines
492 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "geometry/latlon.hpp"
namespace oblate_spheroid
{
/// \brief Calculates the distance in meters between two points on an ellipsoidal earth model.
/// Implements Vincentys formula for the "distance between points" problem.
/// Vincenty's solution is much slower but more accurate than ms::DistanceOnEarth from [geometry].
/// https://en.wikipedia.org/wiki/Vincenty%27s_formulae
double GetDistance(ms::LatLon const & point1, ms::LatLon const & point2);
} // namespace