port pointCoordinate from -js to convert screen points to tile coordinates correctly in perspective view.