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

Comparing ray/src/rt/raytrace.c (file contents):
Revision 2.20 by greg, Fri Sep 29 10:46:12 1995 UTC vs.
Revision 2.21 by greg, Thu Nov 2 17:38:02 1995 UTC

# Line 260 | Line 260 | double  coef;
260  
261  
262   double
263 + raydist(r, flags)               /* compute (cumulative) ray distance */
264 + register RAY  *r;
265 + register int  flags;
266 + {
267 +        double  sum = 0.0;
268 +
269 +        while (r != NULL && r->crtype&flags) {
270 +                sum += r->rot;
271 +                r = r->parent;
272 +        }
273 +        return(sum);
274 + }
275 +
276 +
277 + double
278   raynormal(norm, r)              /* compute perturbed normal for ray */
279   FVECT  norm;
280   register RAY  *r;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines