XMVector3ReciprocalLength

Computes the reciprocal of the length of a 3D vector.

Syntax

XMVECTOR XMVector3ReciprocalLength(
         XMVECTOR V
)  

Parameters

V
Type: XMVECTOR 

3D vector.

Return value

Type: XMVECTOR 

Returns a vector. The reciprocal of the length of V is replicated into each of the returned vector’s components.

Requirements

Header: Declared in directxmath.h.