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.8 by greg, Wed Jan 25 16:08:57 1995 UTC vs.
Revision 2.9 by greg, Fri Aug 18 10:27:11 1995 UTC

# Line 425 | Line 425 | FVECT  vc;
425   }
426  
427  
428 < zoomview(vp, zf)                        /* zoom in our out */
428 > zoomview(vp, zf)                        /* zoom in or out */
429   register VIEW  *vp;
430   double  zf;
431   {
432          switch (vp->type) {
433          case VT_PAR:                            /* parallel view */
434 +                vp->horiz /= zf;
435 +                vp->vert /= zf;
436 +                return;
437          case VT_ANG:                            /* angular fisheye */
438                  vp->horiz /= zf;
439 +                if (vp->horiz > 360.)
440 +                        vp->horiz = 360.;
441                  vp->vert /= zf;
442 +                if (vp->vert > 360.)
443 +                        vp->vert = 360.;
444 +                return;
445 +        case VT_CYL:                            /* cylindrical panorama */
446 +                vp->horiz /= zf;
447 +                if (vp->horiz > 360.)
448 +                        vp->horiz = 360.;
449 +                vp->vert = atan(tan(vp->vert*(PI/180./2.))/zf) / (PI/180./2.);
450                  return;
451          case VT_PER:                            /* perspective view */
452                  vp->horiz = atan(tan(vp->horiz*(PI/180./2.))/zf) /

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines