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

Comparing ray/src/util/findglare.c (file contents):
Revision 2.14 by greg, Tue Jul 29 21:36:08 2014 UTC vs.
Revision 2.15 by greg, Fri Feb 12 00:53:56 2021 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include "glare.h"
11  
12 #define FEQ(a,b)        ((a)-(b)<=FTINY&&(b)-(a)<=FTINY)
13 #define VEQ(v1,v2)      (FEQ((v1)[0],(v2)[0])&&FEQ((v1)[1],(v2)[1]) \
14                                &&FEQ((v1)[2],(v2)[2]))
15
12   char    *rtargv[64] = {"rtrace", "-h-", "-ov", "-fff", "-ld-", "-i-", "-I-"};
13   int     rtargc = 7;
14  
# Line 195 | Line 191 | main(
191                          exit(1);
192                  }
193                  ourview = pictview;
194 <        } else if (picture != NULL && !VEQ(ourview.vp, pictview.vp)) {
194 >        } else if (picture != NULL && !VABSEQ(ourview.vp, pictview.vp)) {
195                  fprintf(stderr, "%s: picture must have same viewpoint\n",
196                                  progname);
197                  exit(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines