mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 22:23:44 +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
@@ -857,8 +857,8 @@ void UpdateShapeInfos(std::vector<ShapeInfoPT> & shapeInfos, m2::PointD const &
|
||||
|
||||
for (ShapeInfoPT & info : shapeInfos)
|
||||
{
|
||||
if (base::AlmostEqualAbs(info.m_direction, newDir, kEps) ||
|
||||
base::AlmostEqualAbs(info.m_direction, newDirReverse, kEps))
|
||||
if (AlmostEqualAbs(info.m_direction, newDir, kEps) ||
|
||||
AlmostEqualAbs(info.m_direction, newDirReverse, kEps))
|
||||
{
|
||||
for (auto const & color : colors)
|
||||
info.m_colors.insert(color);
|
||||
@@ -1254,7 +1254,7 @@ bool StopHasMultipleShapes(std::vector<ShapeInfoPT> const & shapeInfosIn,
|
||||
{
|
||||
auto const it =
|
||||
std::find_if(shapeInfosOut.begin(), shapeInfosOut.end(), [&si](ShapeInfoPT const & so) {
|
||||
return base::AlmostEqualAbs(si.m_direction, so.m_direction, kEps);
|
||||
return AlmostEqualAbs(si.m_direction, so.m_direction, kEps);
|
||||
});
|
||||
if (it != shapeInfosOut.end())
|
||||
++count;
|
||||
|
||||
Reference in New Issue
Block a user