Matrix.CreatePerspectiveOffCenter Method (Microsoft.Xna.Framework)

Creates a new projection Matrix for customized perspective view.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.341)
  • C#
  • VB
  • F#
public static Matrix CreatePerspectiveOffCenter(
	Rectangle viewingVolume, 
	float nearPlaneDistance, 
	float farPlaneDistance
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

viewingVolume
Type: Microsoft.Xna.Framework.Rectangle
The viewing volume.
nearPlaneDistance
Type: System.Single
Distance to the near plane.
farPlaneDistance
Type: System.Single
Distance to the far plane.

Return Value

Type: Microsoft.Xna.Framework.Matrix
The new Matrix for customized perspective view.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web