Lines Matching defs:normal
475 // compute surface normal at given coordinates using 3x3 Sobel gradient filter
480 NR::Fvector normal;
482 normal[Z_3D] = 1.0;
491 normal[X_3D] =
494 normal[Y_3D] =
503 normal[X_3D] =
506 normal[Y_3D] =
516 normal[X_3D] =
520 normal[Y_3D] =
533 normal[X_3D] =
536 normal[Y_3D] =
545 normal[X_3D] =
548 normal[Y_3D] =
558 normal[X_3D] =
562 normal[Y_3D] =
575 normal[X_3D] =
578 normal[Y_3D] =
587 normal[X_3D] =
590 normal[Y_3D] =
601 normal[X_3D] =
605 normal[Y_3D] =
611 normal[X_3D] *= fx;
612 normal[Y_3D] *= fy;
613 NR::normalize_vector(normal);
614 return normal;