xref: /csrg-svn/lib/libplot/hp2648/space.c (revision 19975)
1*19975Sdist /*
2*19975Sdist  * Copyright (c) 1980 Regents of the University of California.
3*19975Sdist  * All rights reserved.  The Berkeley software License Agreement
4*19975Sdist  * specifies the terms and conditions for redistribution.
5*19975Sdist  */
6*19975Sdist 
715458Sralph #ifndef lint
8*19975Sdist static char sccsid[] = "@(#)space.c	5.1 (Berkeley) 05/07/85";
9*19975Sdist #endif not lint
1015458Sralph 
1115458Sralph #include "hp2648.h"
1215458Sralph 
1315458Sralph space(x0,y0,x1,y1)
1415458Sralph int x0,y0,x1,y1;
1515458Sralph {
1615458Sralph 	lowx = x0;
1715458Sralph 	lowy = y0;
1815458Sralph 	scalex = 720.0/(x1-lowx);
1915458Sralph 	scaley = 360.0/(y1-lowy);
2015458Sralph }
21