XMMatrixAffineTransformation

Builds an affine transformation matrix.

Syntax

XMMATRIX XMMatrixAffineTransformation(
         XMVECTOR Scaling,
         XMVECTOR RotationOrigin,
         XMVECTOR RotationQuaternion,
         GXMVECTOR Translation
)  

Parameters

Scaling
Type: XMVECTOR 

Vector of scaling factors for each dimension.

RotationOrigin
Type: XMVECTOR 

Point identifying the center of rotation.

RotationQuaternion
Type: XMVECTOR 

Rotation factors.

Translation
Type: GXMVECTOR 

Translation offsets.

Return value

Type: XMMATRIX 

Returns the affine transformation matrix, built from the scaling, rotation, and translation information.

Requirements

Header: Declared in directxmath.h.