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

Comparing ray/src/rt/rv3.c (file contents):
Revision 1.2 by greg, Wed Apr 5 09:38:12 1989 UTC vs.
Revision 1.3 by greg, Wed May 24 13:55:54 1989 UTC

# Line 266 | Line 266 | FVECT  vc;
266   {
267          extern double  sqrt(), dist2();
268          double  d;
269        FVECT  v;
269          VIEW  nv;
270          register int  i;
271  
# Line 276 | Line 275 | FVECT  vc;
275          if ((nv.type = ourview.type) == VT_PAR) {
276                  nv.horiz = ourview.horiz / mag;
277                  nv.vert = ourview.vert / mag;
278 +                d = 0.0;                        /* don't move closer */
279                  for (i = 0; i < 3; i++)
280 <                        v[i] = vc[i] - ourview.vp[i];
281 <                d = DOT(v, ourview.vdir);       /* don't move closer */
280 >                        d += (vc[i] - ourview.vp[i])*ourview.vdir[i];
281          } else {
282                  nv.horiz = ourview.horiz;
283                  nv.vert = ourview.vert;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines