The value in eye coordinates, , can be computed from the window
coordinate value, , using the near and far plane values, and ,
from the glFrustum() command and the viewport near and far values,
and , from the glDepthRange() command using
the equation:
The window coordinate is computed from the eye coordinate using
the equation: