Don't import qpms_p in __init__, remove scipy from install dependencies
[qpms.git] / oldtests / test_lattices2d.c
blobdbf60f50bc6f93b85f53be3f6b45a4e319b4cbc6
1 // c99 -o l2dtest -ggdb -I ../ test_lattices2d.c ../qpms/lattices2d.c -lm
2 #include <qpms/lattices.h>
3 #include <stdio.h>
5 int main(int argc, char **argv) {
6 cart2_t b1 = {1.2,0.1};
7 cart2_t b2 = {0.5, 0.5};
8 cart2_t b3;
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);
17 return 0;