From acfa01613f6e7fbeace88a15df61252156d39cf1 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Thu, 20 Nov 2025 22:31:53 +0100 Subject: Separate everything out --- src/construction.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/construction.c') diff --git a/src/construction.c b/src/construction.c index 918ceef..6e3cd6e 100644 --- a/src/construction.c +++ b/src/construction.c @@ -155,6 +155,8 @@ void execute_drawing(struct drawing *drawing, double inputs[]) { circle_line_intersect(current->arg1->circle, current->arg2->line, current->root, ¤t->result.point); }break; case CMD_POINT_CIRCLE_CIRCLE: { + assert(current->arg1->type == ETYPE_CIRCLE); + assert(current->arg2->type == ETYPE_CIRCLE); assert(current->result.type == ETYPE_POINT); vec2 between_centers; glm_vec2_sub(current->arg1->circle.center, current->arg2->circle.center, between_centers); -- cgit v1.2.3