Subversion Repositories gelsvn

Rev

Rev 2 | Rev 112 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 5
Line 27... Line 27...
27
				V b_tmp = b[i1];
27
				V b_tmp = b[i1];
28
				b[i1] = b[j];
28
				b[i1] = b[j];
29
				b[j]  = b_tmp;
29
				b[j]  = b_tmp;
30
		
30
		
31
				// Scale row j to have a unit diagonal
31
				// Scale row j to have a unit diagonal
32
				if (a[j][j] == 0.0f)
32
				if (a[j][j] == 0.0)
33
					throw(Mat3x3fSingular("Tried to invert Singular matrix"));
33
					throw(Mat3x3fSingular("Tried to invert Singular matrix"));
34
			
34
			
35
				b[j] /= a[j][j];
35
				b[j] /= a[j][j];
36
				a[j] /= a[j][j];
36
				a[j] /= a[j][j];
37
			
37