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

PI defined in line 17; used 1 times
YMAX defined in line 24; used 3 times

Usage of this include

Last modified: 1994-01-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2682
Valid CSS Valid XHTML 1.0 Strict