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 2.37 by greg, Tue Mar 20 03:37:08 2012 UTC vs.
Revision 2.38 by greg, Thu Sep 6 00:07:43 2012 UTC

# Line 517 | Line 517 | moveview(                                      /* move viewpoint */
517   )
518   {
519          double  d;
520        FVECT  v1;
520          VIEW  nv = ourview;
521          int  i;
522  
523          spinvector(nv.vdir, ourview.vdir, ourview.vup, angle*(PI/180.));
524 <        if (elev != 0.0) {
525 <                fcross(v1, ourview.vup, nv.vdir);
526 <                normalize(v1);
528 <                spinvector(nv.vdir, nv.vdir, v1, elev*(PI/180.));
529 <        }
524 >        if (elev != 0.0)
525 >                geodesic(nv.vdir, nv.vdir, nv.vup, elev*(-PI/180.), GEOD_RAD);
526 >
527          if (nv.type == VT_PAR) {
528                  nv.horiz /= mag;
529                  nv.vert /= mag;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines