Microsoft DirectX 8.1 (C++)

D3DXVec2LengthSq

Returns the square of the length of a 2-D vector.

FLOAT D3DXVec2LengthSq(
  CONST D3DXVECTOR2* pV
); 

Parameters

pV
[in] Pointer to the source D3DXVECTOR2 structure.

Return Values

The vector's squared length.

Requirements

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

See Also

D3DXVec2Length