XMVector3LengthEst

Estimates the length of a 3D vector.

Syntax

XMVECTOR XMVector3LengthEst(
         XMVECTOR V
)  

Parameters

V
Type: XMVECTOR 

3D vector.

Return value

Type: XMVECTOR 

Returns a vector, each of whose components are estimates of the length of V.

Remarks

Est functions offer increased performance at the expense of reduced accuracy. Est functions are appropriate for non-critical calculations where accuracy can be sacrificed for speed. The exact amount of lost accuracy and speed increase are platform dependent.

Requirements

Header: Declared in directxmath.h.