1*15410Sralph /* bg.h 4.1 83/11/10 */ 2*15410Sralph /* 3*15410Sralph * Displays plot files on a bbn bitgraph terminal. 4*15410Sralph */ 5*15410Sralph 6*15410Sralph #include <stdio.h> 7*15410Sralph #include <math.h> 8*15410Sralph 9*15410Sralph #define ESC 033 10*15410Sralph #define PI 3.141592659 11*15410Sralph 12*15410Sralph /* The graphics address range is 0..XMAX, 0..YMAX. */ 13*15410Sralph #define XMAX 768 14*15410Sralph #define YMAX 1024 15*15410Sralph #define scaleX(xi) ((int) ((xi - lowx)*scale +0.5)) 16*15410Sralph #define scaleY(yi) ((int) ((yi - lowy)*scale +0.5)) 17*15410Sralph 18*15410Sralph extern int currentx; 19*15410Sralph extern int currenty; 20*15410Sralph extern double lowx; 21*15410Sralph extern double lowy; 22*15410Sralph extern double scale; 23