set To Perspective Projection
Sets this matrix to a perspective projection matrix for the specified viewport dimensions, vertical field of view and clip distances.
A perspective projection matrix maps points in eye coordinates into clip coordinates in a way that causes distant objects to appear smaller, and preserves the appropriate depth information for each point. In model coordinates, a perspective projection is defined by frustum originating at the eye position and extending outward in the viewer's direction. The near distance and the far distance identify the minimum and maximum distance, respectively, at which an object in the scene is visible.
The field of view must be positive and less than 180. Near and far distances must be positive and must not be equal to one another.
Parameters
the viewport width in screen coordinates
the viewport height in screen coordinates
the vertical field of view
the near clip plane distance in model coordinates
the far clip plane distance in model coordinates
Throws
If either the width or the height is less than or equal to zero, if the field of view is less than or equal to zero or greater than 180, if the near and far distances are equal, or if either the near or far distance are less than or equal to zero