D3DXVec4LengthSq function

Note

The D3DX utility library is deprecated. We recommend that you use DirectXMath instead.

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

Syntax

FLOAT D3DXVec4LengthSq(
  _In_ const D3DXVECTOR4 *pV
);

Parameters

pV [in]

Type: const D3DXVECTOR4*

Pointer to the source D3DXVECTOR4 structure.

Return value

Type: FLOAT

The vector's squared length.

Requirements

Requirement Value
Header
D3dx9math.h
Library
D3dx9.lib

See also

Math Functions

D3DXVec4Length