Monday, December 14, 2009

Check if a point is inside a polygon

Found this today:
http://alienryderflex.com/polygon/

This will be infinitely useful for my mapping applications. I will write code based on this for GDI+ sometime when I have more spare time.  Just wanted to bookmark / share it till then.

3 comments:

  1. Awesome. What is GDI+ btw? Can i use it on GE?

    ReplyDelete
  2. nope it will be in ENDX :) right now you will notice you need to click site and THEN cell. This algorithm will fix it ... but becase of performance I might still keep it the old way :)

    ReplyDelete
  3. Ohhh. So that's why, i thought it needed a double click, rather than a single click. Silly me.

    ReplyDelete