Microsoft DirectX 8.1 (C++)

D3DXVec4CatmullRom

Performs a Catmull-Rom interpolation, using the specified 4-D vectors.

D3DXVECTOR4* D3DXVec4CatmullRom(
  D3DXVECTOR4* pOut,
  CONST D3DXVECTOR4* pV1,
  CONST D3DXVECTOR4* pV2,
  CONST D3DXVECTOR4* pV3,
  CONST D3DXVECTOR4* pV4,
  FLOAT s
); 

Parameters

pOut
[in, out] Pointer to the D3DXVECTOR4 structure that is the result of the operation.
pV1
[in] Pointer to a source D3DXVECTOR4 structure, a position vector.
pV2
[in] Pointer to a source D3DXVECTOR4 structure, a position vector.
pV3
[in] Pointer to a source D3DXVECTOR4 structure, a position vector.
pV4
[[in] Pointer to a source D3DXVECTOR4 structure, a position vector.
s
[in] Weighting factor. See Remarks.

Return Values

Pointer to a D3DXVECTOR4 structure that is the result of the Catmull-Rom interpolation.

Remarks

The D3DXVec2CatmullRom function outputs the value V2 when s (the weight) is equal to 0, and outputs the value V3 when s (the weight) is equal to 1.

Requirements

  Header: Declared in D3dx8math.h.
  Import Library: Use D3dx8.lib.