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

Comparing ray/src/rt/rv2.c (file contents):
Revision 2.62 by greg, Wed Oct 5 17:20:55 2011 UTC vs.
Revision 2.63 by greg, Thu Sep 6 00:07:43 2012 UTC

# Line 337 | Line 337 | getrotate(                             /* rotate camera */
337   )
338   {
339          VIEW  nv = ourview;
340        FVECT  v1;
340          double  angle, elev, zfact;
341          
342          elev = 0.0; zfact = 1.0;
# Line 346 | Line 345 | getrotate(                             /* rotate camera */
345                  return;
346          }
347          spinvector(nv.vdir, ourview.vdir, ourview.vup, angle*(PI/180.));
348 <        if (elev != 0.0) {
349 <                fcross(v1, nv.vdir, ourview.vup);
350 <                normalize(v1);
352 <                spinvector(nv.vdir, nv.vdir, v1, elev*(PI/180.));
353 <        }
348 >        if (elev != 0.0)
349 >                geodesic(nv.vdir, nv.vdir, nv.vup, elev*(PI/180.), GEOD_RAD);
350 >        
351          zoomview(&nv, zfact);
352          newview(&nv);
353   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines