[][src]Function directx_math::XMQuaternionDot

pub fn XMQuaternionDot(Q1: FXMVECTOR, Q2: FXMVECTOR) -> FXMVECTOR

Computes the dot product of two quaternions.

Parameters

Q1 First quaternion

Q2 Second quaternion.

Return value

Returns a vector. The dot product between Q1 and Q2 is replicated into each component.

Remarks

The DirectXMath quaternion functions use an XMVECTOR 4-vector to represent quaternions, where the X, Y, and Z components are the vector part and the W component is the scalar part.

Reference

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