Haxe port of AS3PolyClip