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.3 by greg, Fri Dec 22 08:21:55 1989 UTC vs.
Revision 1.4 by greg, Mon Jan 8 14:45:51 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  vhn2;           /* DOT(vhinc,vhinc) */
27 <        double  vvn2;           /* 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  copyview(d,s)  bcopy((char *)(s),(char *)(d),sizeof(VIEW))
39 >
40 > #define  STDVIEW        {VT_PER,0.,0.,0.,0.,1.,0.,0.,0.,1.,45.,45.,0.,0.}
41  
42   #define  VIEWSTR        "VIEW="

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines