mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 22:03:37 +00:00
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:
committed by
Konstantin Pastbin
parent
82133c5743
commit
30718e106e
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user