[][src]Function directx_math::XMVector2AngleBetweenVectors

pub fn XMVector2AngleBetweenVectors(V1: FXMVECTOR, V2: FXMVECTOR) -> XMVECTOR

Computes the radian angle between two 2D vectors.

Parameters

V1 2D vector.

V2 2D vector.

Return value

Returns a vector. The radian angle between V1 and V2 is replicated to each of the components.

Remarks

If V1 and V2 are normalized 2D vectors, it is faster to use XMVector2AngleBetweenNormals.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVector2AngleBetweenVectors