Partager via


Fonction D3DXVec2TransformCoord (D3dx9math.h)

Notes

La bibliothèque d’utilitaireS D3DX est déconseillée. Nous vous recommandons d’utiliser DirectXMath à la place.

Transforme un vecteur 2D par une matrice donnée, projetant le résultat en w = 1.

Syntaxe

D3DXVECTOR2* D3DXVec2TransformCoord(
  _Inout_       D3DXVECTOR2 *pOut,
  _In_    const D3DXVECTOR2 *pV,
  _In_    const D3DXMATRIX  *pM
);

Paramètres

pOut [in, out]

Type : D3DXVECTOR2*

Pointeur vers la structure D3DXVECTOR2 qui est le résultat de l’opération.

pV [in]

Type : const D3DXVECTOR2*

Pointeur vers la structure D3DXVECTOR2 source.

pM [in]

Type : const D3DXMATRIX*

Pointeur vers la structure D3DXMATRIX source.

Valeur retournée

Type : D3DXVECTOR2*

Pointeur vers une structure D3DXVECTOR2 qui est le vecteur transformé.

Notes

Cette fonction transforme le vecteur pV (x, y, 0, 1) par la matrice pM, projetant le résultat en w=1.

La valeur de retour de cette fonction est la même valeur retournée dans le paramètre pOut . De cette façon, la fonction D3DXVec2TransformCoord peut être utilisée comme paramètre pour une autre fonction.

Spécifications

Condition requise Valeur
En-tête
D3dx9math.h
Bibliothèque
D3dx9.lib

Voir aussi

Fonctions mathématiques

D3DXVec2Transform

D3DXVec2TransformNormal