Function directx_math::XMMatrixTransformation2D [−][src]
pub fn XMMatrixTransformation2D(
ScalingOrigin: FXMVECTOR,
ScalingOrientation: f32,
Scaling: FXMVECTOR,
RotationOrigin: FXMVECTOR,
Rotation: f32,
Translation: GXMVECTOR
) -> XMMATRIX
Builds a 2D transformation matrix.
Parameters
ScalingOrigin
2D vector describing the center of the scaling.
ScalingOrientation
Scaling rotation factor.
Scaling
2D vector containing the scaling factors for the x-axis
and y-axis
.
RotationOrigin
2D vector describing the center of the rotation.
Rotation
Angle of rotation, in radians.
Translation
2D vector describing the translation.
Return value
Returns the transformation matrix.