D3DXQUATERNIONBARYCENTRIC function
Calculate three four-dimensional center of gravity coordinates.
definition:
D3DXQUATERNION * WINAPI D3DXQUATERNIONBARYCENTRIC
D3DXQUATERNION * Pout,
Const d3dxquaternion * pq1,
Const d3dxquaternion * pq2,
Const d3dxquaternion * pq3,
Float F,
Float g
);
parameter:
pout
[IN, OUT] points to the operation result of the D3DXQUATERNION structure.
PQ1
[in] Point to the D3DxQuaternion structure.
PQ2
[in] Point to the D3DxQuaternion structure. .
PQ3
[in] Point to the D3DxQuaternion structure.
fly
Weight factor.
G
Weight factor.
return value:
Point the center of gravity coordinates of the D3Dxquaternion structure.
Description:
In order to calculate the center of gravity, the D3DXQUATERNIONBARYCENTRIC function calculates in a series of spherical curves: Slerp (Slerp (Q1, Q2, F G), Slerp (Q1, Q3, F G), g / (f g))
The function return value is the same as the POUT parameter. This allows the function D3DxQuaternionBaryCentric as a parameter for other functions.
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98