D3DXVEC3CROSS function
Calculate two 3-D vector forks.
Syntax
D3DXVECTOR3 * D3DXVEC3CROSS
D3DXVECTOR3 * Pout,
Const d3dxvector3 * pv1,
Const D3DXVector3 * PV2
);
parameter:
pout
[IN, OUT] points to the operation result of the D3DXVECTOR3 structure.
PV1
[in] Point the source vector of the D3DXVECTOR3 structure.
PV2
[in] Point the source vector of the D3DXVECTOR3 structure.
return value:
Two vector fork results points to the D3DxVector3 structure.
Description:
This function returns two vector forklit results.
Examples are as follows:
D3DXVECTOR3 V;
V.x = pv1-> y * pv2-> z - pv1-> z * pv2-> y;
v.y = pv1-> z * pv2-> x - pv1-> x * pv2-> z;
V.z = pv1-> x * pv2-> y - pv1-> y * pv2-> x;
* pout = v;
The function return value is the same as the POUT parameter. This allows functions D3DXVEC3CROSS to use parameters of other functions. D3DXVECTOR3 V;
V.x = pv1-> y * pv2-> z - pv1-> z * pv2-> y;
v.y = pv1-> z * pv2-> x - pv1-> x * pv2-> z;
V.z = pv1-> x * pv2-> y - pv1-> y * pv2-> x;
* pout = v;
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
Function related:
D3DXVEC3DOT