D3DXVEC3CATMULLROM function
CATMULL-ROM interpolation is performed between 3-D vectors.
definition:
D3DXVECTOR3 * WINAPI D3DXVEC3CATMULLROM
D3DXVECTOR3 * Pout,
Const D3DxVector3 * PV0,
Const d3dxvector3 * pv1,
Const d3dxvector3 * pv2,
Const D3DxVector3 * PV3,
Float S
);
parameter:
pout
[IN, OUT] points to the operation result of the D3DXVECTOR3 structure.
PV0
[in] Points to the location vector of the D3DxVector3 structure.
PV1
[in] Points to the location vector of the D3DxVector3 structure.
PV2
[in] Points to the location vector of the D3DxVector3 structure.
PV3
[in] Points to the location vector of the D3DxVector3 structure.
s
Weight Coefficient. Review.
return value:
Point the CATMULL-ROM interpolation result of the D3DxVector3 structure.
Description:
For example, give four points (P1, P2, P3, P4), find a function q (s) to satisfy the following conditions:
Q (s) is a three-time function.
Q (s) is interpolated between P2 and P3 when the S ranges from 0 to 1.
Q (s) is when S is 0, it is parallel to the P1 to P3 cable.
Q (s) is when S is 1, it parallel P2 to P4.
Function information:
HEADER
D3DX9Math.h
Import Library
D3DX9.LIB
Minimum operation systems
WINDOWS 98
Function related:
D3DXVEC2CATMULLROM, D3DXVEC4CATMULLROM