1 |
< |
/* Copyright (c) 1986 Regents of the University of California */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ LBL" */ |
4 |
< |
|
1 |
> |
/* RCSid $Id$ */ |
2 |
|
/* |
3 |
|
* plocate.h - header for 3D vector location. |
4 |
|
* |
5 |
< |
* 8/28/85 |
5 |
> |
* Include after fvect.h |
6 |
|
*/ |
7 |
+ |
#ifndef _RAD_PLOCATE_H_ |
8 |
+ |
#define _RAD_PLOCATE_H_ |
9 |
+ |
#ifdef __cplusplus |
10 |
+ |
extern "C" { |
11 |
+ |
#endif |
12 |
|
|
13 |
< |
#define EPSILON 1e-6 /* acceptable location error */ |
13 |
> |
#define EPSILON FTINY /* acceptable location error */ |
14 |
|
|
15 |
|
#define XPOS 03 /* x position mask */ |
16 |
|
#define YPOS 014 /* y position mask */ |
20 |
|
|
21 |
|
#define BELOW 025 /* below bits */ |
22 |
|
#define ABOVE 052 /* above bits */ |
23 |
+ |
|
24 |
+ |
|
25 |
+ |
extern int clip(RREAL *ep1, RREAL *ep2, FVECT min, FVECT max); |
26 |
+ |
extern int plocate(FVECT p, FVECT min, FVECT max); |
27 |
+ |
|
28 |
+ |
|
29 |
+ |
#ifdef __cplusplus |
30 |
+ |
} |
31 |
+ |
#endif |
32 |
+ |
#endif /* _RAD_PLOCATE_H_ */ |
33 |
+ |
|