XMMatrixAffineTransformation2D-Funktion (directxmath.h)

Erstellt eine 2D-affine Transformationsmatrix in der xy-Ebene.

Syntax

XMMATRIX XM_CALLCONV XMMatrixAffineTransformation2D(
  [in] FXMVECTOR Scaling,
  [in] FXMVECTOR RotationOrigin,
  [in] float     Rotation,
  [in] FXMVECTOR Translation
) noexcept;

Parameter

[in] Scaling

2D-Vektor von Skalierungsfaktoren für die x- und y-Koordinate.

[in] RotationOrigin

2D-Vektor, der den Drehpunkt beschreibt.

[in] Rotation

Radischer Drehwinkel.

[in] Translation

2D-Vektorübersetzungsoffsets.

Rückgabewert

Gibt die 2D-affine Transformationsmatrix zurück.

Hinweise

Plattformanforderungen

Microsoft Visual Studio 2010 oder Microsoft Visual Studio 2012 mit dem Windows SDK für Windows 8. Unterstützt für Win32-Desktop-Apps, Windows Store-Apps und Windows Phone 8-Apps.

Anforderungen

Anforderung Wert
Zielplattform Windows
Kopfzeile directxmath.h

Weitere Informationen

Matrixfunktionen der DirectXMath-Bibliothek