D3DXMAMATRIXAFFINETRANSFORMATION2D function
Create an affine transformation transformation matrix in the X-Y plane. NULL parameters will be treated as a unit matrix.
definition:
D3DXMAMATRIX * WINAPI D3DXMATRIXAFFINETRANSFORMATION2D (
D3DXMAMATRIX * POUT,
Float Scaling,
Const d3dxvector2 * Protationcenter,
Float Rotation,
Const d3dxvector2 * ptranslation
);
parameter
pout
[IN, OUT] points to the matrix of the result of the D3DXMatrix structure.
Scaling
Scaling Coefficient.
Protationcenter
[in] points to the D3DxVector2 structure pointer, rotating the center vector. If set to NULL, use a unit matrix instead of the MRC.
Rotation
Rotating angle.
PTranslation
[in] points to the D3DxVector2 structure conversion vector. If null, use the unit matrix MT.
return value:
Point the affine transformation matrix of the D3DXMatrix structure.
Description:
This function is to calculate a affine transformation matrix with the following formula:
Mout = ms * (mrc) -1 * mr * mrc * mt
WHERE:
Mout = Output Matrix (Pout)
MS = Zoom Matrix (Scaling)
MRC = Rotating Matrix Center (ProtationCenter)
MR = Rotation Matrix (Protation)
MT = Ping Matrix (PTRANSLATION)
The return value is the same as Pout, which allows D3DXMatrixAffineTransformation2D to be used in other function parameters. 3D affine transform matrix with D3DXMatrixaffineTransformation.
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
related functions:
D3DXMAMATRIXTRANSFORMATION2D, MATRICES