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.9 by greg, Fri Aug 18 10:20:10 1995 UTC vs.
Revision 2.10 by greg, Thu Aug 24 11:55:03 1995 UTC

# Line 240 | Line 240 | FVECT  p;
240          case VT_CYL:                    /* cylindrical panorama */
241                  ip[2] = DOT(disp,v->vdir);
242                  d = DOT(disp,v->hvec);
243 <                ip[0] = 180.0/PI * atan2(ip[2],d) / v->horiz + 0.5 - v->hoff;
243 >                ip[0] = 180.0/PI * atan2(d,ip[2]) / v->horiz + 0.5 - v->hoff;
244                  ip[1] = DOT(disp,v->vvec)/v->vn2 + 0.5 - v->voff;
245                  if (v->vfore > FTINY)
246                          ip[2] = sqrt(DOT(disp,disp)) *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines