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: * @(#)gigi.h 5.1.1 (2.11BSD GTE) 1/1/94
7: */
8:
9: /*
10: * Displays plot files on a gigi "graphics" terminal.
11: */
12:
13: #include <stdio.h>
14: #include <math.h>
15:
16: #define ESC 033
17: #define PI 3.141592659
18:
19: /*
20: * The graphics address range is 0..XMAX, YMAX..0 where (0, YMAX) is the
21: * lower left corner.
22: */
23: #define XMAX 767
24: #define YMAX 479
25: #define xsc(xi) ((int) ((xi -lowx)*scalex +0.5))
26: #define ysc(yi) ((int) (YMAX - (yi - lowy)*scaley +0.5))
27:
28: extern int currentx;
29: extern int currenty;
30: extern double lowx;
31: extern double lowy;
32: extern double scalex;
33: extern double scaley;
Defined macros
ESC
defined in line
16; used 2 times
PI
defined in line
17; used 1 times
XMAX
defined in line
23; used 2 times
YMAX
defined in line
24; used 3 times
xsc
defined in line
25; used 5 times
ysc
defined in line
26; used 5 times
Usage of this include