XMMatrixTransformation2D

Builds a 2D transformation matrix in the xy plane.

Syntax

XMMATRIX XMMatrixTransformation2D(
         XMVECTOR ScalingOrigin,
         float ScalingOrientation,
         XMVECTOR Scaling,
         XMVECTOR RotationOrigin,
         float Rotation,
         GXMVECTOR Translation
)  

Parameters

ScalingOrigin
Type: XMVECTOR 

2D vector describing the center of the scaling.

ScalingOrientation
Type: float 

Scaling rotation factor.

Scaling
Type: XMVECTOR 

2D vector containing the scaling factors for the x-axis and y-axis.

RotationOrigin
Type: XMVECTOR 

2D vector describing the center of the rotation.

Rotation
Type: float 

Angle of rotation, in radians.

Translation
Type: GXMVECTOR 

2D vector describing the translation.

Return value

Type: XMMATRIX 

Returns the transformation matrix.

Requirements

Header: Declared in directxmath.h.