D3DXQUATERNIONMULTIPLY function
Two four-component number multiplied.
definition:
D3DXQUATERNION * WINAPI D3DXQUATERNIONMULTIPLY
D3DXQUATERNION * Pout,
Const d3dxquaternion * pq1,
Const d3dxquaternion * pq2
);
parameter:
pout
[IN, OUT] points to the operation result of the D3DXQUATERNION structure.
PQ1
[in] Points to the source of the D3DXQUATERNION structure.
PQ2
[in] Points to the source of the D3DXQUATERNION structure.
return value:
Point two four-dimensional accumulation of the D3Dxquaternion structure.
Description:
The result of the results is that Q1 is then rotated after the q2 rotation (OUT = Q1 * Q2). D3DXQUATERNIONMULTIPLY function rotation operation with D3DXMatrixmultiply.
The D3DXQUATERNIONMULTIPLY function is the same as the D3DxMatrixMultiply function. For example, MX and my represent the same rotation matrix with QX and qy, then this operation structure is consistent with the four-membered operating results.
D3DXMatrixmultiply (& M, & MX, & MX);
D3DXQUATERNIONMULTIPLY (& Q, & QX, & qy);
The multiplication of the four-element multiplication is not suitable for exchange
The function return value is the same as the POUT parameter. This allows the function D3DXQUATERNIONMULTIPLY to use the parameters of other functions.
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
related functions:
D3DXMatrixmultiply