Click or drag to resize

Matrix4Perspective Method (Double, Double, Double, Double)

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 Matrix4 Perspective(
	double fov,
	double aspect,
	double znear,
	double zfar
)

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.

Return Value

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