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

Comparing ray/src/rt/virtuals.c (file contents):
Revision 2.24 by greg, Mon Feb 1 16:19:49 2021 UTC vs.
Revision 2.25 by greg, Fri Feb 12 00:41:19 2021 UTC

# Line 19 | Line 19 | static const char      RCSid[] = "$Id$";
19   #define  MINSAMPLES     16              /* minimum number of pretest samples */
20   #define  STESTMAX       32              /* maximum seeks per sample */
21  
22 #define FEQ(a,b)        ((a)-(b)+FTINY >= 0 && (b)-(a)+FTINY >= 0)
22  
24
23   static OBJECT  *vobject;                /* virtual source objects */
24   static int  nvobjects = 0;              /* number of virtual source objects */
25  
# Line 33 | Line 31 | isident4(MAT4 m)
31  
32          for (i = 4; i--; )
33                  for (j = 4; j--; )
34 <                        if (!FEQ(m[i][j], i==j))
34 >                        if (!FABSEQ(m[i][j], i==j))
35                                  return(0);
36          return(1);
37   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines