Partager via


Fonction D3DXVec2LengthSq

Notes

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

Retourne le carré de la longueur d’un vecteur 2D.

Syntaxe

FLOAT D3DXVec2LengthSq(
  _In_ const D3DXVECTOR2 *pV
);

Paramètres

pV [in]

Type : const D3DXVECTOR2*

Pointeur vers la structure D3DXVECTOR2 source.

Valeur retournée

Type : FLOAT

Longueur carrée du vecteur.

Spécifications

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

Voir aussi

Fonctions mathématiques

D3DXVec2Length