Matrix.CreatePerspectiveOffCenter Method (Microsoft.Xna.Framework)
Creates a new projection Matrix for customized perspective view.
- C#
- VB
- F#
public static Matrix CreatePerspectiveOffCenter( float left, float right, float bottom, float top, float nearPlaneDistance, float farPlaneDistance )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- left
-
Type: System.Single
Lower x-value at the near plane.
- right
-
Type: System.Single
Upper x-value at the near plane.
- bottom
-
Type: System.Single
Lower y-coordinate at the near plane.
- top
-
Type: System.Single
Upper y-value at the near plane.
- nearPlaneDistance
-
Type: System.Single
Distance to the near plane.
- farPlaneDistance
-
Type: System.Single
Distance to the far plane.
Return Value
Type: Microsoft.Xna.Framework.MatrixThe new Matrix for customized perspective view.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web