home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
RADIANCE
/
SRC
/
RT
/
DATA.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-07
|
881b
|
32 lines
/* Copyright (c) 1986 Regents of the University of California */
/* SCCSid "@(#)data.h 2.1 11/12/91 LBL" */
/*
* data.h - header file for routines which interpolate data.
*
* 6/4/86
*/
#define MAXDDIM 8 /* maximum dimensions for data array */
#define DATATYPE float /* single precision to save space */
#define DSCANF "%f" /* scan format for DATATYPE */
typedef struct datarray {
char *name; /* name of our data */
int nd; /* number of dimensions */
struct {
double org, siz; /* coordinate domain */
int ne; /* number of elements */
double *p; /* point locations */
} dim[MAXDDIM]; /* dimension specifications */
DATATYPE *arr; /* the data */
struct datarray *next; /* next array in list */
} DATARRAY; /* a data array */
extern DATARRAY *getdata(), *getpict();
extern double datavalue();