Click or drag to resize

Matrix4FPerspective Method (Single, Single, Single, Single)

Creates a perspective projection matrix.

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

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.

Return Value

Type: Matrix4F
A projection matrix that transforms camera space to raster space.
See Also