Matrix4x4CreatePerspectiveFieldOfView Method

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

Definition

Namespace: Karamba.Geometry
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static Matrix4x4 CreatePerspectiveFieldOfView(
	double fieldOfView,
	double aspectRatio,
	double nearPlaneDistance,
	double farPlaneDistance
)

Parameters

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

Return Value

Matrix4x4
The perspective projection matrix.

See Also