XMVector2AngleBetweenVectors function (directxmath.h)
Computes the radian angle between two 2D vectors.
XMVECTOR XM_CALLCONV noexcept XMVector2AngleBetweenVectors( [in] FXMVECTOR V1, [in] FXMVECTOR V2 );
Returns a vector. The radian angle between V1 and V2 is replicated to each of the components.
If V1 and V2 are normalized 2D vectors, it is faster to use XMVector2AngleBetweenNormals.
|Header||directxmath.h (include DirectXMath.h)|