This tool has been coded based on the logic described here: [http://alienryderflex.com/polygon/]
It will be used heavily on [http://catcharide.no] and any improvements in the logic will be reflected here.
The author takes no responsibility for usage! :)