|
|
1.1 root 1: #include <stdio.h>
2: #include "tek.h"
3: range(x0, y0, x1, y1)
4: double x0, y0, x1, y1;
5: {
6: e1->xmin = x0;
7: e1->ymin = y0;
8: e1->scalex = e1->sidex / (x1 - x0);
9: e1->scaley = e1->sidey / (y1 - y0);
10: e1->quantum = e0->quantum / sqrt(e1->scalex * e1->scalex +
11: e1->scaley * e1->scaley);
12: if(e1->quantum < .01)
13: e1->quantum = .01;
14: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.