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

Comparing ray/src/util/vwrays.c (file contents):
Revision 3.13 by greg, Sun May 7 15:44:28 2006 UTC vs.
Revision 3.14 by greg, Mon Jun 22 00:12:04 2009 UTC

# Line 184 | Line 184 | pix2rays(
184  
185          while (fscanf(fp, "%lf %lf", &px, &py) == 2) {
186                  px += .5; py += .5;
187                if (px < 0 || px >= rs.xr ||
188                                py < 0 || py >= rs.yr) {
189                        fprintf(stderr,
190                                "%s: (x,y) pair (%.0f,%.0f) out of range\n",
191                                        progname, px, py);
192                        exit(1);
193                }
187                  loc[0] = px/rs.xr; loc[1] = py/rs.yr;
188                  if (zfd >= 0) {
189                          loc2pix(pp, &rs, loc[0], loc[1]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines