XMMatrixAffineTransformation2D

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

Syntax

XMMATRIX XMMatrixAffineTransformation2D(
         XMVECTOR Scaling,
         XMVECTOR RotationOrigin,
         float Rotation,
         XMVECTOR Translation
)  

Parameters

Scaling
Type: XMVECTOR 

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

RotationOrigin
Type: XMVECTOR 

2D vector describing the center of rotation.

Rotation
Type: float 

Radian angle of rotation.

Translation
Type: XMVECTOR 

2D vector translation offsets.

Return value

Type: XMMATRIX 

Returns the 2D affine transformation matrix.

Requirements

Header: Declared in directxmath.h.