ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/plocate.h
Revision: 2.4
Committed: Tue Feb 25 02:47:21 2003 UTC (21 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.3: +2 -57 lines
Log Message:
Replaced inline copyright notice with #include "copyright.h"

File Contents

# Content
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