Commit | Line | Data |
---|---|---|
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 | 11 | static char sccsid[] = "@(#)space.c 8.1 (Berkeley) 6/4/93"; |
e7e40a84 | 12 | #endif /* not lint */ |
23af587d SL |
13 | |
14 | extern float boty; | |
15 | extern float botx; | |
16 | extern float oboty; | |
17 | extern float obotx; | |
18 | extern float scalex; | |
19 | extern float scaley; | |
25e033cd RC |
20 | float deltx = 4095.; |
21 | float delty = 4095.; | |
23af587d SL |
22 | space(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 | } |