Skip to content

Latest commit

 

History

History
78 lines (63 loc) · 2.44 KB

nf-directxmath-xmquaternionrotationmatrix.md

File metadata and controls

78 lines (63 loc) · 2.44 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:directxmath.XMQuaternionRotationMatrix
XMQuaternionRotationMatrix function (directxmath.h)
Computes a rotation quaternion from a rotation matrix.
Use DirectX..XMQuaternionRotationMatrix
XMQuaternionRotationMatrix
XMQuaternionRotationMatrix method [DirectX Math Support APIs]
dxmath.xmquaternionrotationmatrix
dxmath\xmquaternionrotationmatrix.htm
dxmath
M:Microsoft.directx_sdk.quaternion.XMQuaternionRotationMatrix(XMMATRIX)
12/05/2018
Use DirectX..XMQuaternionRotationMatrix, XMQuaternionRotationMatrix, XMQuaternionRotationMatrix method [DirectX Math Support APIs], dxmath.xmquaternionrotationmatrix
directxmath.h
Windows
Use DirectX.
Windows
19H1
XMQuaternionRotationMatrix
directxmath/XMQuaternionRotationMatrix
c++
APIRef
kbSyntax
COM
DirectXMath.h
XMQuaternionRotationMatrix

XMQuaternionRotationMatrix function

-description

Computes a rotation quaternion from a rotation matrix.

-parameters

-param M [in]

Rotation matrix.

-returns

Returns the rotation quaternion.

-remarks

This function only uses the upper 3x3 portion of the XMMATRIX. Note if the input matrix contains scales, shears, or other non-rotation transformations in the upper 3x3 matrix, then the output of this function is ill-defined.

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.

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

-see-also

DirectXMath Library Quaternion Functions