Template Function TRAP::Math::InfinitePerspectiveReverseZ#
Function Documentation#
-
template<typename T>
constexpr Mat<4, 4, T> TRAP::Math::InfinitePerspectiveReverseZ(T fovY, T aspect, T zNear)# Creates a matrix for a symmetric perspective-view frustum with far plane at infinite and reversed Z.
- Parameters:
fovY – Specifies the field of view angle, in degrees, in the y direction. Expressed in radians.
aspect – Specifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
zNear – Specifies the distance from the viewer to the near clipping plane (always positive).
- Returns:
Symmetric perspective matrix.