Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-06-11 16:54:19 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:19:20 +0300
commit7435ad01cffc6b12ea24d02398629eb5d9f92744 (patch)
tree32ad1c1dd9610087e52e3d59113bf4a4d6340d43 /geometry/geometry_tests/intersect_test.cpp
parenta3d2aa94ef1678f11919697d6c8e5be6b28bae7a (diff)
Fix infinite loop in rect-section interaction.
Add unit tests. Russian to english comments.
Diffstat (limited to 'geometry/geometry_tests/intersect_test.cpp')
-rw-r--r--geometry/geometry_tests/intersect_test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/geometry/geometry_tests/intersect_test.cpp b/geometry/geometry_tests/intersect_test.cpp
index 052e09334a..ddec9a3ef8 100644
--- a/geometry/geometry_tests/intersect_test.cpp
+++ b/geometry/geometry_tests/intersect_test.cpp
@@ -171,3 +171,12 @@ UNIT_TEST(IntersectRect_Point)
}
}
}
+
+UNIT_TEST(IntersectRect_NAN)
+{
+ m2::RectD r(-47.622792787168442885, -8.5438097219402173721, 134.06976090684074165, 9.0000000000000337508);
+ m2::PointD p1(134.06976090684077008, 9.0000000000001847411);
+ m2::PointD p2(134.06976090684074165, -8.5438097219401640814);
+
+ m2::Intersect(r, p1, p2);
+}