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

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

diff --git a/usr/src/lib/libplot/gigi/space.c b/usr/src/lib/libplot/gigi/space.c
new file mode 100644 (file)
index 0000000..a4b4fc5
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef lint
+static char sccsid[] = "@(#)space.c    4.1 (Berkeley) %G%";
+#endif
+
+#include "gigi.h"
+
+space(x0,y0,x1,y1)
+int x0,y0,x1,y1;
+{
+       lowx = x0;
+       lowy = y0;
+       scalex = XMAX/(x1-lowx);
+       scaley = YMAX/(y1-lowy);
+}