| 1 |
< |
/* Copyright (c) 1988 Regents of the University of California */ |
| 1 |
> |
/* Copyright (c) 1994 Regents of the University of California */ |
| 2 |
|
|
| 3 |
|
/* SCCSid "$SunId$ LBL" */ |
| 4 |
|
|
| 23 |
|
double vert; /* vertical view size */ |
| 24 |
|
double hoff; /* horizontal image offset */ |
| 25 |
|
double voff; /* vertical image offset */ |
| 26 |
+ |
double vfore; /* fore clipping plane */ |
| 27 |
+ |
double vaft; /* aft clipping plane (<=0 for inf) */ |
| 28 |
|
FVECT hvec; /* computed horizontal image vector */ |
| 29 |
|
FVECT vvec; /* computed vertical image vector */ |
| 30 |
|
double hn2; /* DOT(hvec,hvec) */ |
| 35 |
|
|
| 36 |
|
extern char *setview(); |
| 37 |
|
|
| 38 |
< |
extern double sqrt(); |
| 38 |
> |
extern double viewray(); |
| 39 |
|
|
| 40 |
|
#define viewaspect(v) sqrt((v)->vn2/(v)->hn2) |
| 41 |
|
|
| 42 |
< |
#define STDVIEW {VT_PER,0.,0.,0.,0.,1.,0.,0.,0.,1.,45.,45.,0.,0.} |
| 42 |
> |
#define STDVIEW {VT_PER,{0.,0.,0.},{0.,1.,0.},{0.,0.,1.}, \ |
| 43 |
> |
45.,45.,0.,0.,0.,0., \ |
| 44 |
> |
{0.,0.,0.},{0.,0.,0.},0.,0.} |
| 45 |
|
|
| 46 |
|
#define VIEWSTR "VIEW=" |
| 47 |
+ |
#define VIEWSTRL 5 |