D3DXMAMATRIXTRANSFORMATION2D function

xiaoxiao2021-03-06  80

D3DXMAMATRIXTRANSFORMATION2D function

Creating a 2D transformation matrix is ​​the transform matrix in the XY plane. If the parameter is NULL as a unit matrix.

definition:

D3DXMAMATRIX * WINAPI D3DXMAMATRIXTRANSFORMATION2D (

D3DXMAMATRIX * POUT,

Const d3dxvector2 * pscalingcenter,

Float * pscalingrotation,

Const d3dxvector2 * pscaling,

Const d3dxvector2 * Protationcenter,

Float Rotation,

Const d3dxvector2 * ptranslation

);

parameter:

pout

[IN, OUT] points to the conversion matrix of the D3Dxmatrix structure.

PSCalingCenter

[in] Points the zoom center vector of the D3DxVector2 structure. If the parameter is NULL, the MSC matrix is ​​a unit matrix.

Pscalingrotation

[in] Point to zoom rotation factor.

pscaling

[in] Point the zoom vector of the D3DxVector2 structure. If the parameter is NULL, the MS matrix is ​​a unit matrix.

Protationcenter

[in] points to the rotation vector of the D3DXVector2 structure. If the parameter is NULL, the MRC matrix is ​​a unit matrix.

Rotation

Rotating angle.

PTranslation

[in] Points to the D3DxVector2 structure. If the parameter is NULL, the MT matrix is ​​a unit matrix.

return value:

Point the transformation matrix of the D3DXMatrix structure.

Description:

This function calculates the transform matrix with the following formula:

Mout = (msc) -1 * (msr) -1 * ms * msr * msc * (mrc) -1 * mr * mrc * MT

among them:

Mout = Output Matrix (Pout)

MSC = Zoom Center Matrix (PSCalingCenter)

MSR = Zoom Rotation Matrix (PSCALINGROTION)

MS = Zoom Matrix (pscaling)

MRC = center of rotation matrix (Protationcenter)

MR = Rotation Matrix (Rotation)

MT = Ping Matrix (PTRANSLATION)

The function return value is the same as the POUT parameter. This allows the function D3DXMAMATRIXTRANSFORMATION2D as a parameter of other functions. If you create a 3D transform matrix to use a function D3DXMAMATRIXTRANSFORMATION.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

related functions:

D3DXMAMATRIXAFFINETRANSFORMATION2D, MATRICES

转载请注明原文地址:https://www.9cbs.com/read-108025.html

New Post(0)