XMVector4LengthSq

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

Syntax

XMVECTOR XMVector4LengthSq(
         XMVECTOR V
)  

Parameters

V
Type: XMVECTOR 

4D vector.

Return value

Type: XMVECTOR 

Returns a vector. The square of the length of V is replicated into each component.

Requirements

Header: Declared in directxmath.h.