1 // c99 -o l2dtest -ggdb -I ../ test_lattices2d.c ../qpms/lattices2d.c -lm
2 #include <qpms/lattices.h>
5 int main(int argc
, char **argv
) {
6 cart2_t b1
= {1.2,0.1};
7 cart2_t b2
= {0.5, 0.5};
10 printf("original b1 = (%g, %g), b2 = (%g, %g)\n",
11 b1
.x
, b1
.y
, b2
.x
, b2
.y
);
12 printf("Inscribed circle radius: %g\n",
13 l2d_hexWebInCircleRadius(b1
, b2
));
14 l2d_shortestBase3(b1
, b2
, &b1
, &b2
, &b3
);
15 printf("shortestBase3: b1 = (%g, %g), b2 = (%g, %g), b3 = (%g, %g)\n",
16 b1
.x
, b1
.y
, b2
.x
, b2
.y
, b3
.x
, b3
.y
);