Lines Matching full:norm
2417 double norm;
2420 /* Norm X */
2421 norm = 0;
2423 norm += vectorX[i]*vectorX[i];
2424 norm = sqrt(norm);
2426 vectorX[i] /= norm;
2428 /* Norm Y */
2429 norm = 0;
2431 norm += vectorY[i]*vectorY[i];
2432 norm = sqrt(norm);
2434 vectorY[i] /= norm;
2436 /* Norm Z */
2437 norm = 0;
2439 norm += vectorZ[i]*vectorZ[i];
2440 norm = sqrt(norm);
2442 vectorZ[i] /= norm;