xref: /csrg-svn/lib/libplot/vt0/space.c (revision 61414)
148526Sbostic /*-
2*61414Sbostic  * Copyright (c) 1983, 1993
3*61414Sbostic  *	The Regents of the University of California.  All rights reserved.
448526Sbostic  *
548526Sbostic  * %sccs.include.proprietary.c%
648526Sbostic  */
748526Sbostic 
813390Ssam #ifndef lint
9*61414Sbostic static char sccsid[] = "@(#)space.c	8.1 (Berkeley) 06/04/93";
1048526Sbostic #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.;
space(x0,y0,x1,y1)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