XMMatrixTransformation

Builds a transformation matrix.

Syntax

XMMATRIX XMMatrixTransformation(
         XMVECTOR ScalingOrigin,
         XMVECTOR ScalingOrientationQuaternion,
         XMVECTOR Scaling,
         GXMVECTOR RotationOrigin,
         XMVECTOR RotationQuaternion,
         XMVECTOR Translation
)  

Parameters

ScalingOrigin
Type: XMVECTOR 

3D vector describing the center of the scaling.

ScalingOrientationQuaternion
Type: XMVECTOR 

Quaternion describing the orientation of the scaling.

Scaling
Type: XMVECTOR 

3D vector containing the scaling factors for the x-axis, y-axis, and z-axis.

RotationOrigin
Type: GXMVECTOR 

3D vector describing the center of the rotation.

RotationQuaternion
Type: XMVECTOR 

Quaternion describing the rotation around the origin indicated by RotationOrigin.

Translation
Type: XMVECTOR 

3D vector describing the translations along the x-axis, y-axis, and z-axis.

Return value

Type: XMMATRIX 

Returns the transformation matrix.

Requirements

Header: Declared in directxmath.h.