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

Comparing ray/src/rt/func.c (file contents):
Revision 1.17 by greg, Mon Jun 17 08:51:33 1991 UTC vs.
Revision 1.18 by greg, Tue Jun 18 08:59:52 1991 UTC

# Line 175 | Line 175 | register int  n;
175                  return(sum * funcxf.sca);
176  
177          }
178 <        if (n == 10)                    /* dot product */
179 <                return(fray->rod);
178 >        if (n == 10)                    /* dot product (range [-1,1]) */
179 >                return( fray->rod <= -1.0 ? -1.0 :
180 >                        fray->rod >= 1.0 ? 1.0 :
181 >                        fray->rod );
182  
183          if (n == 11)                    /* scale */
184                  return(funcxf.sca);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines