xref: /csrg-svn/lib/libplot/vt0/space.c (revision 48526)
1*48526Sbostic /*-
2*48526Sbostic  * Copyright (c) 1983 The Regents of the University of California.
3*48526Sbostic  * All rights reserved.
4*48526Sbostic  *
5*48526Sbostic  * %sccs.include.proprietary.c%
6*48526Sbostic  */
7*48526Sbostic 
813390Ssam #ifndef lint
9*48526Sbostic static char sccsid[] = "@(#)space.c	4.3 (Berkeley) 04/22/91";
10*48526Sbostic #endif /* not lint */
1113390Ssam 
1213390Ssam extern float boty;
1313390Ssam extern float botx;
1413390Ssam extern float oboty;
1513390Ssam extern float obotx;
1613390Ssam extern float scalex;
1713390Ssam extern float scaley;
1815481Sralph float deltx = 4095.;
1915481Sralph float delty = 4095.;
2013390Ssam space(x0,y0,x1,y1){
2113390Ssam 	botx = -2047.;
2213390Ssam 	boty = -2047;
2313390Ssam 	obotx = x0;
2413390Ssam 	oboty = y0;
2513390Ssam 	scalex = deltx/(x1-x0);
2613390Ssam 	scaley = delty/(y1-y0);
2713390Ssam }
28