Back to index

radiance  4R0+20100331
Functions | Variables
plocate.c File Reference
#include "copyright.h"
#include "fvect.h"
#include "plocate.h"

Go to the source code of this file.

Functions

int plocate (FVECT p, FVECT min, FVECT max)

Variables

static const char RCSid [] = "$Id: plocate.c,v 2.3 2003/02/25 02:47:21 greg Exp $"

Function Documentation

int plocate ( FVECT  p,
FVECT  min,
FVECT  max 
)

Definition at line 16 of file plocate.c.

{
       register int  loc = 0;

       if (p[0] < min[0] - EPSILON)
              loc |= XPOS & BELOW;
       else if (p[0] > max[0] + EPSILON)
              loc |= XPOS & ABOVE;
       if (p[1] < min[1] - EPSILON)
              loc |= YPOS & BELOW;
       else if (p[1] > max[1] + EPSILON)
              loc |= YPOS & ABOVE;
       if (p[2] < min[2] - EPSILON)
              loc |= ZPOS & BELOW;
       else if (p[2] > max[2] + EPSILON)
              loc |= ZPOS & ABOVE;
       
       return(loc);
}

Here is the caller graph for this function:


Variable Documentation

const char RCSid[] = "$Id: plocate.c,v 2.3 2003/02/25 02:47:21 greg Exp $" [static]

Definition at line 2 of file plocate.c.