From e22588e908a9a2b172a8965cfd8767305dcb3459 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sun, 30 Nov 2025 11:22:18 +0100 Subject: Move around some macro defs --- src/main.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 964c5c0..6fc50c0 100644 --- a/src/main.c +++ b/src/main.c @@ -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("\n", p.pos[0], -p.pos[1]); } -- cgit v1.2.3