fix bug in line segment intersection
This commit is contained in:
parent
f56294b597
commit
713262f756
2 changed files with 9 additions and 7 deletions
|
|
@ -976,6 +976,8 @@ CASE("geometry") {
|
|||
EXPECT(geo::intersects(lsb, lsb));
|
||||
EXPECT(!geo::intersects(lsa, lsc));
|
||||
|
||||
EXPECT(!geo::intersects(geo::Point<double>(871569.2, 6104550.4), geo::Point<double>(871581.2, 6104536), geo::Point<double>(871580.3, 6104541.3), geo::Point<double>(871625.7, 6104510.1)));
|
||||
|
||||
geo::Line<double> l{geo::Point<double>(1, 1), geo::Point<double>(2, 2), geo::Point<double>(2, 4)};
|
||||
EXPECT(!geo::contains(geo::Point<double>(1, 2), l));
|
||||
EXPECT(geo::contains(geo::Point<double>(2, 2), l));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue