Compare `var currentHeight = Math.max(frustum.right - frustum.left, frustum.top - frustum.bottom);` with the destination height (not `z`).