ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/plocate.h
Revision: 2.7
Committed: Fri Jun 27 06:53:21 2003 UTC (20 years, 10 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad4R2P2, rad5R0, rad5R1, rad3R7P2, rad3R7P1, rad4R2, rad4R1, rad4R0, rad3R6, rad3R6P1, rad3R8, rad3R9, rad4R2P1, rad5R3, HEAD
Changes since 2.6: +1 -3 lines
Log Message:
Broke standard.h into rtio.h, rterror.h, rtmath.h, and rtmisc.h

File Contents

# User Rev Content
1 greg 2.7 /* RCSid $Id: plocate.h,v 2.6 2003/06/26 00:58:09 schorsch Exp $ */
2 greg 1.1 /*
3     * plocate.h - header for 3D vector location.
4     *
5 greg 2.3 * Include after fvect.h
6     */
7 schorsch 2.5 #ifndef _RAD_PLOCATE_H_
8     #define _RAD_PLOCATE_H_
9     #ifdef __cplusplus
10     extern "C" {
11     #endif
12 greg 1.1
13 greg 2.2 #define EPSILON FTINY /* acceptable location error */
14 greg 1.1
15     #define XPOS 03 /* x position mask */
16     #define YPOS 014 /* y position mask */
17     #define ZPOS 060 /* z position mask */
18    
19     #define position(i) (3<<((i)<<1)) /* macro version */
20    
21     #define BELOW 025 /* below bits */
22     #define ABOVE 052 /* above bits */
23 greg 2.3
24    
25 schorsch 2.6 extern int clip(RREAL *ep1, RREAL *ep2, FVECT min, FVECT max);
26 schorsch 2.5 extern int plocate(FVECT p, FVECT min, FVECT max);
27 greg 2.3
28    
29 schorsch 2.5 #ifdef __cplusplus
30     }
31 greg 2.3 #endif
32 schorsch 2.5 #endif /* _RAD_PLOCATE_H_ */
33