Perspective calculation