xref: /original-bsd/lib/libplot/vt0/space.c (revision c3e32dec)
1 /*-
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)space.c	8.1 (Berkeley) 06/04/93";
10 #endif /* not lint */
11 
12 extern float boty;
13 extern float botx;
14 extern float oboty;
15 extern float obotx;
16 extern float scalex;
17 extern float scaley;
18 float deltx = 4095.;
19 float delty = 4095.;
20 space(x0,y0,x1,y1){
21 	botx = -2047.;
22 	boty = -2047;
23 	obotx = x0;
24 	oboty = y0;
25 	scalex = deltx/(x1-x0);
26 	scaley = delty/(y1-y0);
27 }
28