Function XMMatrixAffineTransformation

Source
pub fn XMMatrixAffineTransformation(
    Scaling: FXMVECTOR,
    RotationOrigin: FXMVECTOR,
    RotationQuaternion: FXMVECTOR,
    Translation: GXMVECTOR,
) -> XMMATRIX
Expand description

Builds an affine transformation matrix.

§Parameters

Scaling Vector of scaling factors for each dimension.

RotationOrigin Point identifying the center of rotation.

RotationQuaternion Rotation factors.

Translation Translation offsets.

§Return value

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

§Reference

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