D3DXVEC2TRANSFORMCOORDARRAY function

xiaoxiao2021-03-06  101

D3DXVEC2TRANSFORMCOORDARRAY function

Transform a set of vector (x, y, 0, 1) with a matrix, and projected its result to W = 1.

definition:

D3DXVECTOR2 * WINAPI D3DXVEC2TRANSFORMCOORDARRAY

D3DXVECTOR2 * Pout,

Uint Outstride,

Const d3dxvector2 * pv,

Uint vstride,

Const d3dxmatrix * pm,

Uint N

);

parameter:

pout

[IN, OUT] points to the operation result of the D3DXVECTOR2 structure.

Outstride

[in] The size of the elements of the output vector array.

PV

The source vector array of D3DXVECTOR2 structures is directed.

Vstride

[in] The size of the elements of the vector array input.

pm

[in] points to the transformation matrix of the D3DXMatrix structure.

n

[IN] Enter the number of elements of the vector array.

return value:

Refers to the replacement array of D3DXVector4 structures.

Description:

This function is converted with a matrix PM transform array PV (X, Y, 0, 1), which sets the projection coordinates of the vector to be W = 1.

The function return value is the same as the POUT parameter. This allows the function D3DXVEC2TRANSFORMCOORDARRAY to use parameters of other functions.

Function information:

HEADER

D3DX9Math.h

Import Library

D3DX9.LIB

Minimum operation systems

WINDOWS 98

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

New Post(0)