Some people might remember
this thread i made about a polygon union and intersection which is a central part to the level editor for the game i'm making.
I ended up writing my own algorithm for this, and being as there doesn't seem to be anything like this out there I thought I might as well share it with the world :). The code is a bit shaky and sometimes doesn't work correctly, and can only operate on simple polygons without holes.
It is fast enough to be run in realtime on xbox.
Here it is!
Could anyone give any hints on how to further improve this? I'm learning this programming stuff in my free time so i'm not brilliant at making code robust. :P