diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2025-11-30 11:22:18 +0100 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-11-30 11:22:18 +0100 |
| commit | e22588e908a9a2b172a8965cfd8767305dcb3459 (patch) | |
| tree | 369bd419c4df089f535535a3781a99315a999d35 /src/main.c | |
| parent | f8463d52a7c6cb6de6fde0f2472c44cf35e2452a (diff) | |
Move around some macro defs
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -10,42 +10,6 @@ #include "cad/solve.h" #include "cad/svg.h" -#define SETSIGN(b, v) ((v) * ((2 * (b)) - 1)) - -#define DEG(x) ((x) * M_PI / 180.0) - -#define PP_DISTANCE(C1, C2, D) \ - { \ - .type = CT_POINT_POINT_DISTANCE, \ - .v = D, \ - .c1 = C1, \ - .c2 = C2, \ - } - -#define PL_DISTANCE(C1, C2, D) \ - { \ - .type = CT_POINT_LINE_DISTANCE, \ - .v = D, \ - .c1 = C1, \ - .c2 = C2, \ - } - -#define POINT_ON_LINE(C1, C2) \ - PL_DISTANCE(C1, C2, 0) - -#define LL_ANGLE(C1, C2, D) \ - { \ - .type = CT_LINE_LINE_ANGLE, \ - .v = D, \ - .c1 = C1, \ - .c2 = C2, \ - } - -#define CEND() \ - { \ - .type = CT_END, \ - } - void plot_point(struct point p) { printf("<circle cx=\"%f\" cy=\"%f\" r=\".4\" fill=\"black\" />\n", p.pos[0], -p.pos[1]); } |
