ADL for AlmostEqual* and use math:: instead of base:: (#9634)

* ADL for AlmostEqual* and use math:: instead of base::

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-07-07 20:49:00 +02:00
committed by Konstantin Pastbin
parent 82133c5743
commit 30718e106e
175 changed files with 542 additions and 559 deletions

View File

@@ -396,8 +396,8 @@ double Route::GetPolySegAngle(size_t ind) const
{
p2 = m_poly.GetPolyline().GetPoint(i);
}
while (m2::AlmostEqualULPs(p1, p2) && ++i < polySz);
return (i == polySz) ? 0 : base::RadToDeg(ang::AngleTo(p1, p2));
while (AlmostEqualULPs(p1, p2) && ++i < polySz);
return (i == polySz) ? 0 : math::RadToDeg(ang::AngleTo(p1, p2));
}
bool Route::MatchLocationToRoute(location::GpsInfo & location,