Matrix.CreatePerspectiveFieldOfView Method (Microsoft.Xna.Framework)

Creates a new projection Matrix for perspective view with field of view.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static void CreatePerspectiveFieldOfView(
	float fieldOfView, 
	float aspectRatio, 
	float nearPlaneDistance, 
	float farPlaneDistance, 
	out Matrix result
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

fieldOfView
Type: System.Single
Field of view in the y direction in radians.
aspectRatio
Type: System.Single
Width divided by height of the viewing volume.
nearPlaneDistance
Type: System.Single
Distance of the near plane.
farPlaneDistance
Type: System.Single
Distance of the far plane.
result
Type: out Microsoft.Xna.Framework.Matrix
The new projection Matrix for perspective view with FOV as an output parameter.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web