ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/mat4.c
(Generate patch)

Comparing ray/src/common/mat4.c (file contents):
Revision 1.2 by greg, Tue Oct 24 14:01:17 1989 UTC vs.
Revision 1.3 by greg, Fri Dec 22 09:24:07 1989 UTC

# Line 51 | Line 51 | double  v3a[3];
51   register double  v3b[3];
52   register double  m4[4][4];
53   {
54 <        register int  i;
55 <        
56 <        for (i = 0; i < 3; i++)
57 <                m4tmp[0][i] = v3b[0]*m4[0][i] +
58 <                              v3b[1]*m4[1][i] +
59 <                              v3b[2]*m4[2][i];
54 >        m4tmp[0][0] = v3b[0]*m4[0][0] + v3b[1]*m4[1][0] + v3b[2]*m4[2][0];
55 >        m4tmp[0][1] = v3b[0]*m4[0][1] + v3b[1]*m4[1][1] + v3b[2]*m4[2][1];
56 >        m4tmp[0][2] = v3b[0]*m4[0][2] + v3b[1]*m4[1][2] + v3b[2]*m4[2][2];
57          
58          v3a[0] = m4tmp[0][0];
59          v3a[1] = m4tmp[0][1];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines