D3DXMAMATRIXORTHOOFFCENTERLH function
Create an orthogonal projection matrix of a user-customized left hand coordinate system.
definition:
D3DXMAMATRIX * WINAPI D3DXMATRIXORTHOOFFCENTERLH
D3DXMAMATRIX * POUT,
Float L,
Float R,
Float B,
Float t,
Float Zn,
Float ZF
);
parameter:
pout
[in, out] points to the D3DXMAMATRIX structure operation returns the result.
l
[in] The minimum value of the X-axis is observed.
r
[in] The maximum value of the X axis is observed.
b
The smallest value of the Y axis is observed.
t
The maximum value of the Y axis is observed.
Zn
[in] The z-axis minimum is observed.
ZF
[in] The z-axis maximum is observed.
return value:
Point to the user-customized left hand coordinate system of the D3DXMAMATRIX 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.
The D3DXMAMATRIXORTHOLH function is a special case of the D3DXMatrixorthoOffCenterlh function. This matrix can also be created with the D3DXMatrixorthooffCenterlh function, as long as the parameters: L = -w / 2, r = W / 2, B = -h / 2, and T = H / 2 will be line.
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. This method allows the D3DxMatrixorthoOffCenterlh function to be other function parameters.
This function uses the following formula to calculate the orthogonal projection matrix:
2 / (r-L) 0 0 0
0 2 / (t-b) 0 0
0 0 1 / (ZF-Zn) 0
(L R) / (L-R) (T B) / (B-T) Zn / (Zn-ZF) 1
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
related functions:
D3DXMAMATRIXORTH, D3DXMATRIXORTHOLH, D3DXMATRIXORTHOOFFCENTERRH