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

Comparing ray/src/common/xf.c (file contents):
Revision 2.1 by greg, Tue Nov 12 16:54:14 1991 UTC vs.
Revision 2.6 by greg, Fri Jun 27 06:53:22 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1990 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  xf.c - routines to convert transform arguments into 4X4 matrix.
6   *
7 < *     1/28/86
7 > *  External symbols declared in rtmath.h
8   */
9  
10 < #include  "standard.h"
10 > #include  "rtmath.h"
11 > #include  "rtio.h"
12  
13   #define  d2r(a)         ((PI/180.)*(a))
14  
# Line 23 | Line 21 | register XF  *ret;
21   int  ac;
22   char  *av[];
23   {
26        double  atof(), sin(), cos();
24          MAT4  xfmat, m4;
25          double  xfsca, dtmp;
26          int  i, icnt;
# Line 69 | Line 66 | char  *av[];
66                                  m4[1][0] = -(m4[0][1] = sin(dtmp));
67                                  break;
68                          default:
69 <                                return(i);
69 >                                goto done;
70                          }
71                          break;
72  
# Line 102 | Line 99 | char  *av[];
99                                  m4[2][2] = -1.0;
100                                  break;
101                          default:
102 <                                return(i);
102 >                                goto done;
103                          }
104                          break;
105  
# Line 118 | Line 115 | char  *av[];
115                          continue;
116  
117                  default:
118 <                        return(i);
118 >                        goto done;
119  
120                  }
121                  multmat4(xfmat, xfmat, m4);
# Line 138 | Line 135 | register XF  *ret;
135   int  ac;
136   char  *av[];
137   {
141        double  atof(), sin(), cos();
138          MAT4  xfmat, m4;
139          double  xfsca, dtmp;
140          int  i, icnt;
# Line 184 | Line 180 | char  *av[];
180                                  m4[1][0] = -(m4[0][1] = sin(dtmp));
181                                  break;
182                          default:
183 <                                return(i);
183 >                                goto done;
184                          }
185                          break;
186  
# Line 217 | Line 213 | char  *av[];
213                                  m4[2][2] = -1.0;
214                                  break;
215                          default:
216 <                                return(i);
216 >                                goto done;
217                          }
218                          break;
219  
# Line 233 | Line 229 | char  *av[];
229                          break;
230  
231                  default:
232 <                        return(i);
232 >                        goto done;
233  
234                  }
235                  multmat4(xfmat, m4, xfmat);     /* left multiply */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines