ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/cal/mat3.cal
Revision: 1.1
Committed: Sat Feb 22 02:07:21 2003 UTC (21 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad3R7P2, rad3R7P1, rad3R5, rad3R6, rad3R6P1, rad3R8, rad3R9
Log Message:
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

File Contents

# User Rev Content
1 greg 1.1 {
2     3x3 Matrix operations
3     }
4    
5     MatDot(A,B,i,j) : A(i,0)*B(0,j) + A(i,1)*B(1,j) + A(i,2)*B(2,j);
6    
7     i3(i) : if(i-2.5, i-3, i);
8    
9     MinorDet(M,i,j) : M(i3(i+1),i3(j+1))*M(i3(i+2),i3(j+2)) -
10     M(i3(i+1),i3(j+2))*M(i3(i+2),i3(j+1));
11    
12     Det(M) : M(0,0)*MinorDet(M,0,0) +
13     M(0,1)*MinorDet(M,0,1) +
14     M(0,2)*MinorDet(M,0,2);
15    
16     Inv(M,i,j) : MinorDet(M,j,i) / Det(M);
17