[routing] Fixed point comparison.
This commit is contained in:
parent
70b1f7b8f7
commit
b9ce5f8eff
1 changed files with 1 additions and 1 deletions
|
@ -1346,7 +1346,7 @@ void OsrmRouter::GetPossibleTurns(NodeID node,
|
|||
ft.ParseGeometry(FeatureType::BEST_GEOMETRY);
|
||||
|
||||
m2::PointD const p2 = ft.GetPoint(seg.m_pointStart < seg.m_pointEnd ? seg.m_pointStart + 1 : seg.m_pointStart - 1);
|
||||
ASSERT_EQUAL(p, ft.GetPoint(seg.m_pointStart), ());
|
||||
ASSERT(m2::AlmostEqual(p, ft.GetPoint(seg.m_pointStart)), ());
|
||||
|
||||
double const a = my::RadToDeg(ang::TwoVectorsAngle(p, p1, p2));
|
||||
|
||||
|
|
Reference in a new issue