Projection.CreatePerspectiveMatrix

Projection.CreatePerspectiveMatrix method

Calculates a perspective projection matrix.

public static Matrix4x4 CreatePerspectiveMatrix(float aspectRatio, float yfov, float znear, 
    float zfar = Infinity)
ParameterTypeDescription
aspectRatioSingleThe aspect ratio between horizontal and vertical. (optional)
yfovSingleThe vertical field of view, in radians.
znearSingleDistance to the near pane in the Z axis.
zfarSingleDistance to the far plane in the Z axis. Optionally, this value can be positive infinity

Return Value

A projection matrix

See Also