Functions to calculate the visible width / height at a given z-depth from a perspective camera may help you.