XMQuaternionDot

Computes the dot product of two quaternions.

Syntax

XMVECTOR XMQuaternionDot(
         XMVECTOR Q1,
         XMVECTOR Q2
)  

Parameters

Q1
Type: XMVECTOR 

First quaternion.

Q2
Type: XMVECTOR 

Second quaternion.

Return value

Type: XMVECTOR 

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.

Requirements

Header: Declared in directxmath.h.