D3DXMAMATRIXORTHOOFFCENTERRH function
Create a user-customized right hand coordinate system.
definition:
D3DXMAMATRIX * WINAPI D3DXMATRIXORTHOOFFCENTERRH (
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:
The user-customized right-hand coordinate system that is customized to 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.
The D3DXMAMATRIXORTHORH function is a special case of the D3DXMatrixorthoOffCenterRh function. This matrix can also be created with the D3DXMAMATRIXORTHOOFFCENTERRH function, as long as the parameters: L = -w / 2, r = W / 2, B = -H / 2, and T = H / 2 will be done.
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 D3DxMatrixorthoOffCenterRh function can be used as 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 / (Zn-ZF) 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, D3DXMATRIXORTHOOFFCENTERLH