BSD 4_3_Reno release
[unix-history] / usr / src / lib / libplot / t4013 / space.c
CommitLineData
b059c7be
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
93e466da 7#ifndef lint
95f51977 8static char sccsid[] = "@(#)space.c 5.1 (Berkeley) 6/7/85";
b059c7be 9#endif not lint
93e466da
JK
10
11extern float botx;
12extern float boty;
13extern float obotx;
14extern float oboty;
15extern float scalex;
16extern float scaley;
17extern int scaleflag;
18space(x0,y0,x1,y1){
19 botx = 0.;
20 boty = 0.;
21 obotx = x0;
22 oboty = y0;
23 if(scaleflag)
24 return;
25 scalex = 780./(x1-x0);
26 scaley = 780./(y1-y0);
27}