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

Comparing ray/src/px/pinterp.c (file contents):
Revision 1.28 by greg, Fri Mar 16 19:19:52 1990 UTC vs.
Revision 1.29 by greg, Tue Sep 4 21:16:25 1990 UTC

# Line 608 | Line 608 | char   *fname;
608                  if (donorm) {
609                          double  vx, yzn2;
610                          register int    x;
611 <                        yzn2 = y - .5*(vresolu-1);
611 >                        yzn2 = (y+.5)/vresolu + ourview.voff - .5;
612                          yzn2 = 1. + yzn2*yzn2*ourview.vn2;
613                          for (x = 0; x < hresolu; x++) {
614 <                                vx = x - .5*(hresolu-1);
614 >                                vx = (x+.5)/hresolu + ourview.hoff - .5;
615                                  zout[x] = zscan(y)[x]
616                                          * sqrt(vx*vx*ourview.hn2 + yzn2);
617                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines