home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / RADIANCE / SRC / RT / DATA.H < prev    next >
C/C++ Source or Header  |  1993-10-07  |  881b  |  32 lines

  1. /* Copyright (c) 1986 Regents of the University of California */
  2.  
  3. /* SCCSid "@(#)data.h 2.1 11/12/91 LBL" */
  4.  
  5. /*
  6.  *  data.h - header file for routines which interpolate data.
  7.  *
  8.  *     6/4/86
  9.  */
  10.  
  11. #define  MAXDDIM    8        /* maximum dimensions for data array */
  12.  
  13. #define  DATATYPE    float        /* single precision to save space */
  14.  
  15. #define  DSCANF        "%f"        /* scan format for DATATYPE */
  16.  
  17. typedef struct datarray {
  18.     char  *name;            /* name of our data */
  19.     int  nd;            /* number of dimensions */
  20.     struct {
  21.         double  org, siz;        /* coordinate domain */
  22.         int  ne;            /* number of elements */
  23.         double  *p;            /* point locations */
  24.     } dim[MAXDDIM];            /* dimension specifications */
  25.     DATATYPE  *arr;            /* the data */
  26.     struct datarray  *next;        /* next array in list */
  27. } DATARRAY;            /* a data array */
  28.  
  29. extern DATARRAY  *getdata(), *getpict();
  30.  
  31. extern double  datavalue();
  32.