BSD 4_3_Reno release
[unix-history] / usr / src / lib / libplot / bitgraph / bg.h
CommitLineData
66c27cd0
DF
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 *
95f51977 6 * @(#)bg.h 5.1 (Berkeley) 4/30/85
66c27cd0
DF
7 */
8
94561afa
RC
9/*
10 * Displays plot files on a bbn bitgraph terminal.
11 */
12
13#include <stdio.h>
14#include <math.h>
15
16#define ESC 033
17#define PI 3.141592659
18
19/* The graphics address range is 0..XMAX, 0..YMAX. */
20#define XMAX 768
21#define YMAX 1024
22#define scaleX(xi) ((int) ((xi - lowx)*scale +0.5))
23#define scaleY(yi) ((int) ((yi - lowy)*scale +0.5))
24
25extern int currentx;
26extern int currenty;
27extern double lowx;
28extern double lowy;
29extern double scale;