point_in_polygon() 2.0
Demon666 - Custom level - Jun 11, 2015 from Windowsversion 2.0
- completely different method
- simpler/shorter/more accurate
100% accurate(untill proven otherwise)
detects if a point is within a polygon by using the even/odd intersections rule
even works with concave polygons
doesnt work with polygons that overlap themselves
hover the cursor inside or outside the object to test it.
feel free to change around the points and let me know if any bugs
Downloads: 252 - Level ID: 16300