10 |
|
#include <string.h> |
11 |
|
#include <math.h> |
12 |
|
|
13 |
+ |
#include "meta.h" |
14 |
|
#include "random.h" |
15 |
< |
#include "mgflib/parser.h" |
15 |
> |
#include "mgf_parser.h" |
16 |
|
#include "plocate.h" /* XXX shouldn't this rather be in rtmath.h? */ |
17 |
|
|
18 |
|
#define MSIZE ((1<<14)-1) |
151 |
|
hshtab[h][0] = v1x; hshtab[h][1] = v1y; |
152 |
|
hshtab[h][2] = v2x; hshtab[h][3] = v2y; |
153 |
|
if ((long)(v2x-v1x)*(v2x-v1x) + (long)(v2y-v1y)*(v2y-v1y) |
154 |
< |
<= random() % rthresh) |
154 |
> |
<= irandom(rthresh)) |
155 |
|
return(0); |
156 |
|
mline(v1x, v1y, layer/4, 0, layer%4); |
157 |
|
mdraw(v2x, v2y); |