mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 14:13:45 +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
@@ -198,7 +198,7 @@ double CalcOneSegmentTurnAngle(TurnInfo const & turnInfo)
|
||||
ASSERT_GREATER_OR_EQUAL(turnInfo.m_ingoing->m_path.size(), 2, ());
|
||||
ASSERT_GREATER_OR_EQUAL(turnInfo.m_outgoing->m_path.size(), 2, ());
|
||||
|
||||
return base::RadToDeg(PiMinusTwoVectorsAngle(turnInfo.m_ingoing->m_path.back().GetPoint(),
|
||||
return math::RadToDeg(PiMinusTwoVectorsAngle(turnInfo.m_ingoing->m_path.back().GetPoint(),
|
||||
turnInfo.m_ingoing->m_path[turnInfo.m_ingoing->m_path.size() - 2].GetPoint(),
|
||||
turnInfo.m_outgoing->m_path[1].GetPoint()));
|
||||
}
|
||||
@@ -209,7 +209,7 @@ double CalcPathTurnAngle(LoadedPathSegment const & segment, size_t const pathInd
|
||||
ASSERT_GREATER(pathIndex, 0, ());
|
||||
ASSERT_LESS(pathIndex, segment.m_path.size() - 1, ());
|
||||
|
||||
return base::RadToDeg(PiMinusTwoVectorsAngle(segment.m_path[pathIndex].GetPoint(),
|
||||
return math::RadToDeg(PiMinusTwoVectorsAngle(segment.m_path[pathIndex].GetPoint(),
|
||||
segment.m_path[pathIndex - 1].GetPoint(),
|
||||
segment.m_path[pathIndex + 1].GetPoint()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user