D3DXMatrixortholh function
Create a left hand coordinate system orthogonal projection matrix.
definition:
D3DXMAMATRIX * WINAPI D3DXMATRIXORTHOLH (
D3DXMAMATRIX * POUT,
Float W,
Float H,
Float Zn,
Float ZF
);
parameter:
pout
[IN, OUT] points to the operation result matrix of the D3DXMatrix structure.
w
[in] Width when observed.
hide
[in] When observing the time.
Zn
[in] The Z-axis nearest time is observed.
ZF
[in] The z axis farthest when observing.
return value:
The left-hand coordinate system is orthogonal to the left hand coordinate system of the D3DXMatrix structure.
Description:
In the linear algebra, a orthogonal matrix is a square matrix, its transpressive matrix is its inverse matrix.
All parameter distances in the D3DXMatrixortholh function are calculated in the camera space, describing the observation measure.
The return value is the same as the value of the parameter Pout. Through this method, the D3DxMatrixortholh function can be used as other function parameters.
This function uses the following formula to calculate the orthogonal projection matrix:
2 / w 0 0 0
0 2 / h 0 0
0 0 1 / (ZF-Zn) 0
0 0 Zn / (Zn-ZF) 1
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
related functions:
D3DXMAMATRIXORTHOOFFCENTERRH, D3DXMATRIXORTHOOFFCENTERLH