1 |
/* RCSid $Id$ */ |
2 |
/* |
3 |
* plocate.h - header for 3D vector location. |
4 |
* |
5 |
* Include after fvect.h |
6 |
*/ |
7 |
|
8 |
#include "copyright.h" |
9 |
|
10 |
#define EPSILON FTINY /* acceptable location error */ |
11 |
|
12 |
#define XPOS 03 /* x position mask */ |
13 |
#define YPOS 014 /* y position mask */ |
14 |
#define ZPOS 060 /* z position mask */ |
15 |
|
16 |
#define position(i) (3<<((i)<<1)) /* macro version */ |
17 |
|
18 |
#define BELOW 025 /* below bits */ |
19 |
#define ABOVE 052 /* above bits */ |
20 |
|
21 |
#ifdef NOPROTO |
22 |
|
23 |
extern int clip(); |
24 |
|
25 |
extern int plocate(); |
26 |
|
27 |
#else |
28 |
|
29 |
extern int clip(FLOAT *ep1, FLOAT *ep2, FVECT min, FVECT max); |
30 |
|
31 |
extern int plocate(FVECT p, FVECT min, FVECT max); |
32 |
|
33 |
#endif |