D3DXMAMATRIXORTHORH function
Create a right hand coordinate system orthogonal projection matrix.
definition:
D3DXMAMATRIX * WINAPI D3DXMATRIXORTHORH (
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:
Point to the right hand coordinate system of the D3DXMatrix structure is orthogonal to the projection matrix.
Description:
In the linear algebra, a orthogonal matrix is a square matrix, its transpressive matrix is its inverse matrix.
All parameter distances in the D3DXMatrixorthorh function are calculated in the camera space, describing the amount of observation measure.
The return value is the same as the value of the parameter Pout. Through this method, the D3DxMatrixorThorh 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 / (Zn-ZF) 0
0 0 Zn / (Zn-ZF) 1
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
related functions:
D3DXMAMATRIXORTHOLH, D3DXMATRIXORTHOOFFCENTERRH, D3DXMATRIXORTHOOFFCENTERLH