Return to Project-GC

Welcome to Project-GC Q&A. Ask questions and get answers from other Project-GC users.

If you get a good answer, click the checkbox on the left to select it as the best answer.

Upvote answers or questions that have helped you.

If you don't get clear answers, edit your question to make it clearer.

function, that checks if a coord is inside an area / polygon given by an array / list of coords? [closed]

0 votes
359 views
Writing a Checker, is there a function, that checks if a coord is inside an area / polygon given by an array / list of coords?
closed with the note: answered. thank you
asked Nov 28, 2014 in Support and help by twoapples (240 points)
closed Dec 3, 2014 by twoapples
it it used in the checker to http://project-gc.com/Challenges/GC2M3D4/1320
it uses the algorithm in http://en.wikipedia.org/wiki/Point_in_polygon
I think the checker code has a but if the line hits a endpoint of a polygon but i am not sure
Thank you. I will have a look on this script.

1 Answer

0 votes
 
Best answer
This can very well be implemented in LUA. There already are polygon checker(s) that does this as well.
answered Nov 28, 2014 by magma1447 (Admin) (208,230 points)
selected Dec 3, 2014 by twoapples
...