// Constructor -- loads the interpolation table from the specified
// file
fgINTERPTABLE::fgINTERPTABLE( char *file ) {
// Constructor -- loads the interpolation table from the specified
// file
fgINTERPTABLE::fgINTERPTABLE( char *file ) {
fgPrintf( FG_MATH, FG_INFO, "Initializing Interpolator for %s\n", file);
// First try "file.gz"
fgPrintf( FG_MATH, FG_INFO, "Initializing Interpolator for %s\n", file);
// First try "file.gz"
fgPrintf(FG_MATH, FG_EXIT, "Cannot open file: %s\n", file);
}
}
size = 0;
fgPrintf(FG_MATH, FG_EXIT, "Cannot open file: %s\n", file);
}
}
size = 0;
if ( size < MAX_TABLE_SIZE ) {
sscanf(line, "%lf %lf\n", &(table[size][0]), &(table[size][1]));
size++;
if ( size < MAX_TABLE_SIZE ) {
sscanf(line, "%lf %lf\n", &(table[size][0]), &(table[size][1]));
size++;
// Revision 1.3 1998/04/25 15:05:01 curt
// Changed "r" to "rb" in gzopen() options. This fixes bad behavior in win32.
//
// Revision 1.3 1998/04/25 15:05:01 curt
// Changed "r" to "rb" in gzopen() options. This fixes bad behavior in win32.
//