D3DXMAMATRIXPERSPECTIVEFOVLH function
Create a perspective projection matrix of a left hand coordinate system.
definition:
D3DXMAMATRIX * WINAPI D3DXMATRIXPERSPECTIVEFOVLH (
D3DXMAMATRIX * POUT,
Float fovy,
Float aspect,
Float Zn,
Float ZF
);
parameter:
pout
[IN, OUT] points to the operation result matrix of the D3DXMatrix structure.
FOVY
[in] The angle (radians) of the Y-axis direction is observed, which is to observe the range angle.
Aspect
[in] aspect ratio, divided by the width of the viewing space.
Zn
Near cutting of cutting surface Z value.
ZF
Tough cut surface position z value.
return value:
Perspective of the left-hand coordinate system of the D3DXMatrix structure.
Description:
The function return value is the same as the POUT parameter. This allows functions D3DXMatrixPERSPECTIVEFOVLH to use parameters of other functions.
Use the following method to calculate the left hand coordinate system perspective projection matrix:
Xscale 0 0 0 0
0 yscale 0 0
0 0 ZF / (ZF-Zn) 1
0 0 -ZN * ZF / (ZF-Zn) 0
among them:
YSCALE = COT (FOVY / 2)
Xscale = aspect ratio * Yscale
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
related functions:
D3DXMAMATRIXPERSPECTIVERH, D3DXMATRIXPERSPECTIVELH, D3DXMATRIXPERSPECTIVELH, D3DXMATRIXPECTIVEFOVRH, D3DXMATRIXPERSPECTIVEFFCENTERRH, D3DXMATRIXPERSPECTIVEOFFCENTERLH