date and time created 83/11/11 15:12:17 by ralph
[unix-history] / usr / src / lib / libplot / vt0 / subr.c
CommitLineData
fcbb3402
SL
1#ifndef lint
2static char sccsid[] = "@(#)subr.c 4.1 (Berkeley) %G%";
3#endif
4
5extern float obotx;
6extern float oboty;
7extern float boty;
8extern float botx;
9extern float scalex;
10extern float scaley;
11xsc(xi){
12 int xa;
13 xa = (xi-obotx)*scalex+botx;
14 return(xa);
15}
16ysc(yi){
17 int ya;
18 ya = (yi-oboty)*scaley+boty;
19 return(ya);
20}