The routine gSetViewPlaneDistance() calculates a new position for the view plane, keeping the eye position fixed, so that the perspective distance is equal to dist.
If dist < 0, the position of the view plane is set so that the direction of viewing is reversed.
If dist = 0 or if the current view has no perspective defined, an error message is output and no further action is taken.