An Haxe port of the poly2tri library