Back to index

radiance  4R0+20100331
plocate.h
Go to the documentation of this file.
00001 /* RCSid $Id: plocate.h,v 2.7 2003/06/27 06:53:21 greg Exp $ */
00002 /*
00003  *  plocate.h - header for 3D vector location.
00004  *
00005  *  Include after fvect.h
00006  */
00007 #ifndef _RAD_PLOCATE_H_
00008 #define _RAD_PLOCATE_H_
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012 
00013 #define  EPSILON     FTINY         /* acceptable location error */
00014 
00015 #define  XPOS        03            /* x position mask */
00016 #define  YPOS        014           /* y position mask */
00017 #define  ZPOS        060           /* z position mask */
00018 
00019 #define  position(i) (3<<((i)<<1)) /* macro version */
00020 
00021 #define  BELOW              025           /* below bits */
00022 #define  ABOVE              052           /* above bits */
00023 
00024 
00025 extern int    clip(RREAL *ep1, RREAL *ep2, FVECT min, FVECT max);
00026 extern int    plocate(FVECT p, FVECT min, FVECT max);
00027 
00028 
00029 #ifdef __cplusplus
00030 }
00031 #endif
00032 #endif /* _RAD_PLOCATE_H_ */
00033