forked from organicmaps/organicmaps
[search] Fix epsilon rect calculating.
This commit is contained in:
parent
ec3743fe36
commit
3214717687
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ namespace
|
|||
{
|
||||
inline bool IsEqual(m2::RectD const & r1, m2::RectD const & r2, double eps)
|
||||
{
|
||||
eps = eps * MercatorBounds::degreeInMetres;
|
||||
|
||||
m2::RectD r = r1;
|
||||
r.Inflate(eps, eps);
|
||||
if (!r.IsRectInside(r2)) return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue