--- ray/src/common/plocate.h 1989/02/02 10:33:00 1.1 +++ ray/src/common/plocate.h 2003/06/06 16:38:47 2.5 @@ -1,15 +1,19 @@ -/* Copyright (c) 1986 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: plocate.h,v 2.5 2003/06/06 16:38:47 schorsch Exp $ */ /* * plocate.h - header for 3D vector location. * - * 8/28/85 + * Include after fvect.h */ +#ifndef _RAD_PLOCATE_H_ +#define _RAD_PLOCATE_H_ +#ifdef __cplusplus +extern "C" { +#endif -#define EPSILON 1e-6 /* acceptable location error */ +#include "copyright.h" +#define EPSILON FTINY /* acceptable location error */ + #define XPOS 03 /* x position mask */ #define YPOS 014 /* y position mask */ #define ZPOS 060 /* z position mask */ @@ -18,3 +22,14 @@ #define BELOW 025 /* below bits */ #define ABOVE 052 /* above bits */ + + +extern int clip(FLOAT *ep1, FLOAT *ep2, FVECT min, FVECT max); +extern int plocate(FVECT p, FVECT min, FVECT max); + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_PLOCATE_H_ */ +