Click or drag to resize

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

Creates a perspective projection matrix.

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

Parameters

fov  Single
Angle of the field of view in the y direction.
aspect  Single
Aspect ratio of the view (width / height).
znear  Single
Distance to the near clip plane.
zfar  Single
Distance to the far clip plane.
result  Matrix4F
When the method completes, contains a projection matrix that transforms camera space to raster space.
See Also