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

Comparing ray/src/common/image.c (file contents):
Revision 2.54 by greg, Thu Jan 13 00:26:09 2022 UTC vs.
Revision 2.55 by greg, Sat Jul 16 00:26:34 2022 UTC

# Line 313 | Line 313 | FVECT  p
313                  break;
314          case VT_PER:                    /* perspective view */
315                  d = DOT(disp,v->vdir);
316 <                if ((v->vaft > FTINY) & (d >= v->vaft))
317 <                        rflags |= VL_BEYOND;
316 >                rflags |= VL_BEYOND*((v->vaft > FTINY) &
317 >                                        (d >= v->vaft));
318                  ip[2] = VLEN(disp);
319                  if (d < -FTINY) {       /* fold pyramid */
320                          ip[2] = -ip[2];
# Line 343 | Line 343 | FVECT  p
343                  d2 = d*d + d2*d2;
344                  if (d2 <= FTINY*FTINY)
345                          return(VL_BAD); /* at pole */
346 <                if ((v->vaft > FTINY) & (d2 >= v->vaft*v->vaft))
347 <                        rflags |= VL_BEYOND;
346 >                rflags |= VL_BEYOND*((v->vaft > FTINY) &
347 >                                        (d2 >= v->vaft*v->vaft));
348                  d = 1.0/sqrt(d2);
349                  ip[1] = DOT(disp,v->vvec)*d/v->vn2 + 0.5 - v->voff;
350                  ip[2] = VLEN(disp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines