Microsoft DirectX 8.1 (C++)

D3DXVec2CatmullRom

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

D3DXVECTOR2* D3DXVec2CatmullRom(
  D3DXVECTOR2* pOut,
  CONST D3DXVECTOR2* pV1,
  CONST D3DXVECTOR2* pV2,
  CONST D3DXVECTOR2* pV3,
  CONST D3DXVECTOR2* pV4,
  FLOAT s
); 

Parameters

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

Return Values

Pointer to a D3DXVECTOR2 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.