ILNumerics Ultimate VS

Matrix4CreatePerspectiveFieldOfView Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Creates a perspective projection matrix.

[ILNumerics Visualization Engine]

Namespace:  ILNumerics.Drawing
Assembly:  ILNumerics.Drawing (in ILNumerics.Drawing.dll) Version: ILNumerics Ultimate VS 4
Syntax

public static Matrix4 CreatePerspectiveFieldOfView(
	float fovy,
	float aspect,
	float zNear,
	float zFar
)

Parameters

fovy
Type: SystemSingle
Angle of the field of view in the y direction (in radians)
aspect
Type: SystemSingle
Aspect ratio of the view (width / height)
zNear
Type: SystemSingle
Distance to the near clip plane
zFar
Type: SystemSingle
Distance to the far clip plane

Return Value

Type: Matrix4
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown under the following conditions:
  • fovy is zero, less than zero or larger than Math.PI
  • aspect is negative or zero
  • zNear is negative or zero
  • zFar is negative or zero
  • zNear is larger than zFar
Remarks

[ILNumerics Visualization Engine]

See Also

Reference