7.2.4 Les fonctions d'initialisation de Matrice4

Et c'est reparti avec une flopée de paramètres :

1
2
3
4
5
6
7
8
9
10
11
void Matrice4::setMatrice4(const Vecteur4 & v1, const Vecteur4 & v2, const Vecteur4 & v3, const Vecteur4 & v4){
	this->initialisationMatrice4(v1, v2, v3, v4);
}

void Matrice4::setMatrice4(float x1, float y1, float z1, float t1,
			float x2, float y2, float z2, float t2,
			float x3, float y3, float z3, float t3,
			float x4, float y4, float z4, float t4)
{
	initialisationMatrice4(x1, y1, z1, t1, x2, y2, z2, t2, x3, y3, z3, t3, x4, y4, z4, t4);
}

Ce n'est pas toujours utile de mettre autant de paramètres à une fonction, mais comme ce sont des fonctions d'initialisation, ça ne pose pas trop de problème.