Skip to content

Commit ad06faf

Browse files
committed
Fixed polygon polygon test
1 parent b061d70 commit ad06faf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

olcUTIL_Geometry2D.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3019,13 +3019,13 @@ namespace olc::utils::geom2d
30193019
{
30203020
for (auto& triangle : p1.triangles)
30213021
{
3022-
if (overlaps(triangle, p2) == false)
3022+
if (overlaps(triangle, p2) == true)
30233023
{
3024-
return false;
3024+
return true;
30253025
}
30263026
}
30273027

3028-
return true;
3028+
return false;
30293029
}
30303030

30313031
// contains(p,p)

0 commit comments

Comments
 (0)