Click or drag to resize

Matrix4FPerspective Method (Single, Single, Single, Single, Matrix4F)

Creates a perspective projection matrix.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2022.1.1.0 (2022.1.1.0)
Syntax
C#
public static void Perspective(
	float fov,
	float aspect,
	float znear,
	float zfar,
	out Matrix4F result
)

Parameters

fov
Type: SystemSingle
Angle of the field of view in the y direction.
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.
result
Type: NeoAxisMatrix4F
When the method completes, contains a projection matrix that transforms camera space to raster space.
See Also