Function directx_math::XMMatrixAffineTransformation2D[][src]

pub fn XMMatrixAffineTransformation2D(
    Scaling: FXMVECTOR,
    RotationOrigin: FXMVECTOR,
    Rotation: f32,
    Translation: GXMVECTOR
) -> XMMATRIX

Builds a 2D affine transformation matrix in the xy plane.

Parameters

Scaling 2D vector of scaling factors for the x-coordinate and y-coordinate.

RotationOrigin 2D vector describing the center of rotation.

Rotation Radian angle of rotation.

Translation 2D vector translation offsets.

Return value

Returns the 2D affine transformation matrix.

Reference

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