Click or drag to resize

Matrix4x4CreatePerspectiveFieldOfView Method

Creates a perspective projection matrix based on a field of view, aspect ratio, and near and far view plane distances.

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Matrix4x4 CreatePerspectiveFieldOfView(
	double fieldOfView,
	double aspectRatio,
	double nearPlaneDistance,
	double farPlaneDistance
)

Parameters

fieldOfView
Type: SystemDouble
Field of view in the y direction, in radians.
aspectRatio
Type: SystemDouble
Aspect ratio, defined as view space width divided by height.
nearPlaneDistance
Type: SystemDouble
Distance to the near view plane.
farPlaneDistance
Type: SystemDouble
Distance to the far view plane.

Return Value

Type: Matrix4x4
The perspective projection matrix.
See Also