OpenFL Haxe port of Geometry.