D3DXMAMATRIXAFFINETRANSFORMATION function

xiaoxiao2021-03-06  73

D3DXMAMATRIXAFFINETRANSFORMATION function

Create an affine transformation transformation matrix. NULL parameters will be treated as a unit matrix.

definition

D3DXMAMATRIX * WINAPI D3DXMATRIXAFFINETRANSFORMATION

D3DXMAMATRIX * POUT,

Float Scaling,

Const d3dxvector3 * Protationcenter,

Const d3dxquaternion * Protation,

Const d3dxvector3 * ptranslation

);

parameter

pout

[IN, OUT] points to the matrix of the result of the D3DXMatrix structure.

Scaling

Scaling Coefficient.

Protationcenter

[in] points to the D3DXVECTOR3 structure pointer, rotating the center vector. If set to NULL, use a unit matrix instead of the MRC.

Protation

[in] points to the D3DxQuaternion structure rotation matrix. If the parameter is NULL, use the unit matrix MR instead.

PTranslation

[in] points to the D3DXVector3 structure transform 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

among them:

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, so that D3DXMatrixAffineTransformation is used as other function parameters. 2D affine transformation matrix with D3DXMatrixaffineTransformation2D.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

related functions:

D3DXMAMATRIXTRANSFORMATION, MATRICES

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

New Post(0)