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

Comparing ray/src/common/fvect.c (file contents):
Revision 2.5 by gwlarson, Wed Nov 25 16:56:33 1998 UTC vs.
Revision 2.7 by greg, Tue Feb 25 02:47:21 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1998 Silicon Graphics, Inc. */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ SGI";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5 < *  fvect.c - routines for float vector calculations
9 < *
10 < *     8/14/85
5 > *  fvect.c - routines for floating-point vector calculations
6   */
7  
8 + #include "copyright.h"
9 +
10   #include  <math.h>
11   #include  "fvect.h"
12  
# Line 75 | Line 72 | FVECT  ep1, ep2;       /* the end points */
72   }
73  
74  
75 + void
76   fcross(vres, v1, v2)            /* vres = v1 X v2 */
77   register FVECT  vres, v1, v2;
78   {
# Line 84 | Line 82 | register FVECT  vres, v1, v2;
82   }
83  
84  
85 + void
86   fvsum(vres, v0, v1, f)          /* vres = v0 + f*v1 */
87   register FVECT  vres, v0, v1;
88   register double  f;
# Line 118 | Line 117 | register FVECT  v;
117   }
118  
119  
120 + void
121   spinvector(vres, vorig, vnorm, theta)   /* rotate vector around normal */
122   FVECT  vres, vorig, vnorm;
123   double  theta;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines