Click or drag to resize

Matrix4x4CreatePerspective Method

Creates a perspective projection matrix from the given view volume dimensions.

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Matrix4x4 CreatePerspective(
	double width,
	double height,
	double nearPlaneDistance,
	double farPlaneDistance
)

Parameters

width
Type: SystemDouble
Width of the view volume at the near view plane.
height
Type: SystemDouble
Height of the view volume at the near view plane.
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