Creates a perspective projection matrix based on a field of view.
Declaration Syntax
public static Matrix CreatePerspectiveFOVMatrix(
float fieldOfView,
float aspectRatio,
float nearPlaneDistance,
float farPlaneDistance
)
Parameters
-
fieldOfView (Single)
- Field of view angle in radians, must be between 0 and Pi
-
aspectRatio (Single)
- Aspect ratio, defined as the view space's width divided by height
-
nearPlaneDistance (Single)
- Distance to the near plane
-
farPlaneDistance (Single)
- Distance to the far plane
Return Value
Resulting projection matrix
Assembly:
Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)