D3DXVec2LengthSq function

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

Syntax


FLOAT D3DXVec2LengthSq(
  _In_ const D3DXVECTOR2 *pV
);

Parameters

pV [in]

Type: const D3DXVECTOR2*

Pointer to the source D3DXVECTOR2 structure.

Return value

Type: FLOAT

The vector's squared length.

Requirements

Header

D3dx9math.h

Library

D3dx9.lib

See also

Math Functions
D3DXVec2Length

 

 

Show: