148508Sbostic /*- 2*61388Sbostic * Copyright (c) 1980, 1993 3*61388Sbostic * The Regents of the University of California. All rights reserved. 419972Sdist * 548508Sbostic * %sccs.include.proprietary.c% 648508Sbostic * 7*61388Sbostic * @(#)gigi.h 8.1 (Berkeley) 06/04/93 819972Sdist */ 919972Sdist 1019972Sdist /* 1115500Sralph * Displays plot files on a gigi "graphics" terminal. 1215500Sralph */ 1315500Sralph 1415500Sralph #include <stdio.h> 1515500Sralph #include <math.h> 1615500Sralph 1715500Sralph #define ESC 033 1815500Sralph #define PI 3.141592659 1915500Sralph 2015500Sralph /* 2115500Sralph * The graphics address range is 0..XMAX, YMAX..0 where (0, YMAX) is the 2215500Sralph * lower left corner. 2315500Sralph */ 2415500Sralph #define XMAX 767 2515500Sralph #define YMAX 479 2615500Sralph #define xsc(xi) ((int) ((xi -lowx)*scalex +0.5)) 2715500Sralph #define ysc(yi) ((int) (YMAX - (yi - lowy)*scaley +0.5)) 2815500Sralph 2915500Sralph extern int currentx; 3015500Sralph extern int currenty; 3115500Sralph extern double lowx; 3215500Sralph extern double lowy; 3315500Sralph extern double scalex; 3415500Sralph extern double scaley; 35