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 1.1 by greg, Thu Feb 2 10:34:32 1989 UTC vs.
Revision 1.3 by greg, Mon May 8 08:40:56 1989 UTC

# Line 91 | Line 91 | register FVECT  v;
91          
92          len = DOT(v, v);
93          
94 <        if (len <= FTINY*FTINY)
94 >        if (len <= 0.0)
95                  return(0.0);
96          
97 +        /****** problematic
98          if (len >= (1.0-FTINY)*(1.0-FTINY) &&
99                          len <= (1.0+FTINY)*(1.0+FTINY))
100                  return(1.0);
101 +        ******/
102  
103          len = sqrt(len);
104          v[0] /= len;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines