148504Sbostic /*- 2*61330Sbostic * Copyright (c) 1980, 1993 3*61330Sbostic * The Regents of the University of California. All rights reserved. 419852Sdist * 548504Sbostic * %sccs.include.proprietary.c% 648504Sbostic * 7*61330Sbostic * @(#)bg.h 8.1 (Berkeley) 06/04/93 819852Sdist */ 919852Sdist 1019852Sdist /* 1115410Sralph * Displays plot files on a bbn bitgraph terminal. 1215410Sralph */ 1315410Sralph 1415410Sralph #include <stdio.h> 1515410Sralph #include <math.h> 1615410Sralph 1715410Sralph #define ESC 033 1815410Sralph #define PI 3.141592659 1915410Sralph 2015410Sralph /* The graphics address range is 0..XMAX, 0..YMAX. */ 2115410Sralph #define XMAX 768 2215410Sralph #define YMAX 1024 2315410Sralph #define scaleX(xi) ((int) ((xi - lowx)*scale +0.5)) 2415410Sralph #define scaleY(yi) ((int) ((yi - lowy)*scale +0.5)) 2515410Sralph 2615410Sralph extern int currentx; 2715410Sralph extern int currenty; 2815410Sralph extern double lowx; 2915410Sralph extern double lowy; 3015410Sralph extern double scale; 31