ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/view.h
(Generate patch)

Comparing ray/src/common/view.h (file contents):
Revision 1.2 by greg, Sun Dec 10 13:41:08 1989 UTC vs.
Revision 1.5 by greg, Thu Jan 18 23:58:55 1990 UTC

# Line 19 | Line 19 | typedef struct {
19          FVECT  vup;             /* view up */
20          double  horiz;          /* horizontal view size */
21          double  vert;           /* vertical view size */
22 <        int  hresolu;           /* horizontal resolution */
23 <        int  vresolu;           /* vertical resolution */
24 <        FVECT  vhinc;           /* computed horizontal increment */
25 <        FVECT  vvinc;           /* computed vertical increment */
26 <        double  vhs2;           /* 1.0/DOT(vhinc,vhinc) */
27 <        double  vvs2;           /* 1.0/DOT(vvinc,vvinc) */
22 >        double  hoff;           /* horizontal image offset */
23 >        double  voff;           /* vertical image offset */
24 >        FVECT  hvec;            /* computed horizontal image vector */
25 >        FVECT  vvec;            /* computed vertical image vector */
26 >        double  hn2;            /* DOT(hvec,hvec) */
27 >        double  vn2;            /* DOT(vvec,vvec) */
28   } VIEW;                 /* view parameters */
29  
30   extern VIEW  stdview;
31  
32   extern char  *setview();
33  
34 < #define  STDVIEW(h)     {VT_PER,0.,0.,0.,0.,1.,0.,0.,0.,1.,45.,45.,h,h}
34 > extern double  sqrt();
35 >
36 > #define  viewaspect(v)  sqrt((v)->vn2/(v)->hn2)
37 >
38 > #define  STDVIEW        {VT_PER,0.,0.,0.,0.,1.,0.,0.,0.,1.,45.,45.,0.,0.}
39  
40   #define  VIEWSTR        "VIEW="

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines