Creates a perspective projection matrix from the given view volume dimensions.
'Declaration
Public Shared Function Perspective( _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single _
) As Matrix4x4
public static Matrix4x4 Perspective(
System.float ,
System.float ,
System.float ,
System.float
)
Parameters
- width
- The width of the view volume at the near view plane.
- height
- The height of the view volume at the near view plane.
- nearPlaneDistance
- The distance to the near view plane.
- farPlaneDistance
- The distance to the far view plane.
Return Value
The perspective projection matrix.