11 void iso(struct hex *h) {
13 printf("iso(%d,%d,%d)", h->x, h->y, h->z);
15 void xy(struct hex *h) {
17 printf("xy(%d,%d)", h->x, h->y);
26 char isea[64], sahr[64];
32 g.output = ISEA_PLANE;
33 g.radius = ISEA_SCALE;
36 while (input[i].data) i++;
41 skip(2, "don't have known output");
43 /* convert to radians */
44 ll.lon = input[j].a * M_PI / 180.0;
45 ll.lat = input[j].b * M_PI / 180.0;
46 xy = isea_forward(&g, &ll);
47 sprintf(isea, "%.7f", xy.x);
48 sprintf(sahr, "%.7f", dgg[j].a);
49 ok(!strcmp(isea,sahr), "plane X (%f, %f %s) %s != %s / %s",
50 input[j].a, input[j].b, input[j].data,
52 xy.x, dgg[j].a, dgg[j].data);
53 sprintf(isea, "%.7f", xy.y);
54 sprintf(sahr, "%.7f", dgg[j].b);
55 ok(!strcmp(isea,sahr), "plane Y (%f, %f %s) %f != %f",
56 input[j].a, input[j].b, input[j].data,