Matrix4.CreatePerspectiveOffCenter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single) | |
CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single, Matrix4) |
Creates an perspective projection matrix. |
CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single)
public static OpenTK.Matrix4 CreatePerspectiveOffCenter (float left, float right, float bottom, float top, float zNear, float zFar);
static member CreatePerspectiveOffCenter : single * single * single * single * single * single -> OpenTK.Matrix4
Parameters
- left
- Single
- right
- Single
- bottom
- Single
- top
- Single
- zNear
- Single
- zFar
- Single
Returns
Applies to
CreatePerspectiveOffCenter(Single, Single, Single, Single, Single, Single, Matrix4)
Creates an perspective projection matrix.
public static void CreatePerspectiveOffCenter (float left, float right, float bottom, float top, float zNear, float zFar, out OpenTK.Matrix4 result);
static member CreatePerspectiveOffCenter : single * single * single * single * single * single * -> unit
Parameters
- left
- Single
Left edge of the view frustum
- right
- Single
Right edge of the view frustum
- bottom
- Single
Bottom edge of the view frustum
- top
- Single
Top edge of the view frustum
- zNear
- Single
Distance to the near clip plane
- zFar
- Single
Distance to the far clip plane
- result
- Matrix4
A projection matrix that transforms camera space to raster space
Exceptions
Thrown under the following conditions:
- zNear is negative or zero:
- zFar is negative or zero:
- zNear is larger than zFar: