xref: /csrg-svn/lib/libplot/hp7221/space.c (revision 61395)
148518Sbostic /*-
2*61395Sbostic  * Copyright (c) 1980, 1993
3*61395Sbostic  *	The Regents of the University of California.  All rights reserved.
448518Sbostic  *
548518Sbostic  * %sccs.include.proprietary.c%
619978Sdist  */
719978Sdist 
815477Sralph #ifndef lint
9*61395Sbostic static char sccsid[] = "@(#)space.c	8.1 (Berkeley) 06/04/93";
1048518Sbostic #endif /* not lint */
1115477Sralph 
1215477Sralph #include "hp7221.h"
1315477Sralph 
space(x0,y0,x1,y1)1415477Sralph space(x0,y0,x1,y1)
1515477Sralph int x0,y0,x1,y1;
1615477Sralph {
1715477Sralph 	double scalex, scaley;
1815477Sralph 	lowx = x0;
1915477Sralph 	lowy = y0;
2015477Sralph 	scalex = XMAX/(double)(x1-lowx);
2115477Sralph 	scaley = YMAX/(double)(y1-lowy);
2215477Sralph 	scale = scalex < scaley ? scalex : scaley;
2315477Sralph }
24