date and time created 83/11/10 16:30:26 by ralph
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 08:30:26 +0000 (00:30 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Fri, 11 Nov 1983 08:30:26 +0000 (00:30 -0800)
SCCS-vsn: lib/libplot/gigi/gigi.h 4.1

usr/src/lib/libplot/gigi/gigi.h [new file with mode: 0644]

diff --git a/usr/src/lib/libplot/gigi/gigi.h b/usr/src/lib/libplot/gigi/gigi.h
new file mode 100644 (file)
index 0000000..1503eb7
--- /dev/null
@@ -0,0 +1,26 @@
+/*     gigi.h  4.1     83/11/10        */
+/*
+ * Displays plot files on a gigi "graphics" terminal.
+ */
+
+#include <stdio.h>
+#include <math.h>
+
+#define ESC    033
+#define PI     3.141592659
+
+/*
+ * The graphics address range is 0..XMAX, YMAX..0 where (0, YMAX) is the
+ * lower left corner.
+ */
+#define XMAX   767
+#define YMAX   479
+#define xsc(xi)        ((int) ((xi -lowx)*scalex +0.5))
+#define ysc(yi)        ((int) (YMAX - (yi - lowy)*scaley +0.5))
+
+extern int currentx;
+extern int currenty;
+extern double lowx;
+extern double lowy;
+extern double scalex;
+extern double scaley;