BSD 4_4 release
[unix-history] / usr / src / lib / libplot / vt0 / space.c
CommitLineData
e7e40a84 1/*-
63b21a88
KB
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
e7e40a84 4 *
ad787160
C
5 * This module is believed to contain source code proprietary to AT&T.
6 * Use and redistribution is subject to the Berkeley Software License
7 * Agreement and your Software Agreement with AT&T (Western Electric).
e7e40a84
KB
8 */
9
23af587d 10#ifndef lint
ad787160 11static char sccsid[] = "@(#)space.c 8.1 (Berkeley) 6/4/93";
e7e40a84 12#endif /* not lint */
23af587d
SL
13
14extern float boty;
15extern float botx;
16extern float oboty;
17extern float obotx;
18extern float scalex;
19extern float scaley;
25e033cd
RC
20float deltx = 4095.;
21float delty = 4095.;
23af587d
SL
22space(x0,y0,x1,y1){
23 botx = -2047.;
24 boty = -2047;
25 obotx = x0;
26 oboty = y0;
27 scalex = deltx/(x1-x0);
28 scaley = delty/(y1-y0);
29}