Haxe PPlane/Dfield implementation using reverse-polish-notation