| 1 |
greg |
2.4 |
/* RCSid $Id$ */ |
| 2 |
greg |
1.1 |
/* |
| 3 |
|
|
* plocate.h - header for 3D vector location. |
| 4 |
|
|
* |
| 5 |
greg |
2.3 |
* Include after fvect.h |
| 6 |
|
|
*/ |
| 7 |
|
|
|
| 8 |
greg |
2.4 |
#include "copyright.h" |
| 9 |
greg |
1.1 |
|
| 10 |
greg |
2.2 |
#define EPSILON FTINY /* acceptable location error */ |
| 11 |
greg |
1.1 |
|
| 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 |
greg |
2.3 |
|
| 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 |