Swap orthographic → perspective — the exact inverse of
swapToOrthographic. Restores the FOV that was in effect at the
last perspective→ortho swap (via getLastPerspectiveFov), and dollies
the camera along its view direction so the apparent size at the pivot
depth matches the ortho frustum (compensating for ortho zoom). Preserves
orientation and up vector from the ortho camera.
No-op when the current camera is already perspective.
Swap orthographic → perspective — the exact inverse of swapToOrthographic. Restores the FOV that was in effect at the last perspective→ortho swap (via
getLastPerspectiveFov), and dollies the camera along its view direction so the apparent size at the pivot depth matches the ortho frustum (compensating for ortho zoom). Preserves orientation and up vector from the ortho camera.No-op when the current camera is already perspective.