ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/plocate.h
Revision: 2.5
Committed: Fri Jun 6 16:38:47 2003 UTC (20 years, 10 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 2.4: +11 -9 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 schorsch 2.5 /* RCSid $Id: plocate.h,v 2.4 2003/02/25 02:47:21 greg 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 2.3
13 greg 2.4 #include "copyright.h"
14 greg 1.1
15 greg 2.2 #define EPSILON FTINY /* acceptable location error */
16 greg 1.1
17     #define XPOS 03 /* x position mask */
18     #define YPOS 014 /* y position mask */
19     #define ZPOS 060 /* z position mask */
20    
21     #define position(i) (3<<((i)<<1)) /* macro version */
22    
23     #define BELOW 025 /* below bits */
24     #define ABOVE 052 /* above bits */
25 greg 2.3
26    
27     extern int clip(FLOAT *ep1, FLOAT *ep2, FVECT min, FVECT max);
28 schorsch 2.5 extern int plocate(FVECT p, FVECT min, FVECT max);
29 greg 2.3
30    
31 schorsch 2.5 #ifdef __cplusplus
32     }
33 greg 2.3 #endif
34 schorsch 2.5 #endif /* _RAD_PLOCATE_H_ */
35