Click or drag to resize

Matrix4Perspective Method (Double, Double, Double, Double, Matrix4)

Creates a perspective projection matrix.

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

Parameters

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