Partager via


fonction XMFLOAT3X4 ::XMFLOAT3X4(constfloat*) (directxmath.h)

Construit un XMFLOAT3X4 à partir d’un tableau de 12 éléments de valeurs float.

Syntaxe

void XMFLOAT3X4(
  const float *pArray
) noexcept;

Paramètres

pArray

Type : const float *

Pointeur vers un tableau de 12 éléments de valeurs float. Le tableau spécifie la valeur de chaque membre de la nouvelle matrice.

Valeur de retour

None

Remarques

Les éléments de matrice dans pArray doivent être dans l’ordre principal des lignes. Ces deux exemples de pseudocode illustrent le fonctionnement de ce constructeur.

DirectX::XMFLOAT3X4 mat;
mat._11 = pArray[0];
mat._12 = pArray[1];
mat._13 = pArray[2];
mat._14 = pArray[3];
mat._21 = pArray[4];
mat._22 = pArray[5];
mat._23 = pArray[6];
mat._24 = pArray[7];
mat._31 = pArray[8];
mat._32 = pArray[9];
mat._33 = pArray[10];
mat._34 = pArray[11];
DirectX::XMFLOAT3X4 mat;
mat.m[0, 0] = pArray[0];
mat.m[0, 1] = pArray[1];
mat.m[0, 2] = pArray[2];
mat.m[0, 3] = pArray[3];
mat.m[1, 0] = pArray[4];
mat.m[1, 1] = pArray[5];
mat.m[1, 2] = pArray[6];
mat.m[1, 3] = pArray[7];
mat.m[2, 0] = pArray[8];
mat.m[2, 1] = pArray[9];
mat.m[2, 2] = pArray[10];
mat.m[2, 3] = pArray[11];

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 10 Build 20348
Serveur minimal pris en charge Windows 10 Build 20348
Plateforme cible Windows
En-tête directxmath.h

Voir aussi

XMFLOAT3X4 structure