1 /* gigi.h 4.1 83/11/10 */ 2 /* 3 * Displays plot files on a gigi "graphics" terminal. 4 */ 5 6 #include <stdio.h> 7 #include <math.h> 8 9 #define ESC 033 10 #define PI 3.141592659 11 12 /* 13 * The graphics address range is 0..XMAX, YMAX..0 where (0, YMAX) is the 14 * lower left corner. 15 */ 16 #define XMAX 767 17 #define YMAX 479 18 #define xsc(xi) ((int) ((xi -lowx)*scalex +0.5)) 19 #define ysc(yi) ((int) (YMAX - (yi - lowy)*scaley +0.5)) 20 21 extern int currentx; 22 extern int currenty; 23 extern double lowx; 24 extern double lowy; 25 extern double scalex; 26 extern double scaley; 27