Refactor PerspectiveSceneToRaster to push up some of the calculations to an earlier stage.