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.2 by greg, Thu Dec 19 14:45:41 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 68 | 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 101 | 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 117 | Line 115 | char  *av[];
115                          continue;
116  
117                  default:
118 <                        return(i);
118 >                        goto done;
119  
120                  }
121                  multmat4(xfmat, xfmat, m4);
# Line 182 | 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 215 | 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 231 | 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