The routine gMoveViewCentre() calculates a new position for the view plane by displacing the view centre a distance dist in the direction of viewing. If a perspective view is being modified, the eye position is displaced by the same amount, leaving the perspective distance unchanged.
If dist is less than zero, the displacement is in the opposite direction to the direction of viewing.