mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 14:43:43 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
14
libs/search/geometry_utils.hpp
Normal file
14
libs/search/geometry_utils.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include "geometry/point2d.hpp"
|
||||
#include "geometry/rect2d.hpp"
|
||||
|
||||
namespace search
|
||||
{
|
||||
// Distance between 2 mercator points in meters.
|
||||
double PointDistance(m2::PointD const & a, m2::PointD const & b);
|
||||
|
||||
// Tests whether two rects given in the mercator projection are
|
||||
// equal with the absolute precision |eps|.
|
||||
bool IsEqualMercator(m2::RectD const & r1, m2::RectD const & r2, double eps);
|
||||
} // namespace search
|
||||
Reference in New Issue
Block a user