Fonction XMMatrixTransformation2D (directxmath.h)

Génère une matrice de transformation 2D dans le plan xy.

Syntaxe

XMMATRIX XM_CALLCONV XMMatrixTransformation2D(
  [in] FXMVECTOR ScalingOrigin,
  [in] float     ScalingOrientation,
  [in] FXMVECTOR Scaling,
  [in] FXMVECTOR RotationOrigin,
  [in] float     Rotation,
  [in] GXMVECTOR Translation
) noexcept;

Paramètres

[in] ScalingOrigin

Vecteur 2D décrivant le centre de la mise à l’échelle.

[in] ScalingOrientation

Facteur de rotation de mise à l’échelle.

[in] Scaling

Vecteur 2D contenant les facteurs de mise à l’échelle pour l’axe x et l’axe y.

[in] RotationOrigin

Vecteur 2D décrivant le centre de la rotation.

[in] Rotation

Angle de rotation, en radians.

[in] Translation

Vecteur 2D décrivant la traduction.

Valeur retournée

Retourne la matrice de transformation.

Notes

Configuration requise pour la plateforme

Microsoft Visual Studio 2010 ou Microsoft Visual Studio 2012 avec le Kit de développement logiciel (SDK) Windows pour Windows 8. Pris en charge pour les applications de bureau Win32, les applications du Windows Store et Windows Phone 8 applications.

Spécifications

   
Plateforme cible Windows
En-tête directxmath.h

Voir aussi

Fonctions matricielles de bibliothèque DirectXMath