diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2025-10-19 13:53:57 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-10-19 13:54:04 +0200 |
| commit | 9b33e6879b79905adfa415eba911d7e8b540429f (patch) | |
| tree | c0ca248df3cb396778ae9ed03b03ba306457b4a6 /inc/cad.h | |
| parent | 197fd727099d264cbf7c746f752f762dd3618814 (diff) | |
Add tests
Diffstat (limited to 'inc/cad.h')
| -rw-r--r-- | inc/cad.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/inc/cad.h b/inc/cad.h new file mode 100644 index 0000000..9d4e563 --- /dev/null +++ b/inc/cad.h @@ -0,0 +1,18 @@ +#pragma once + +#include "cad/construction.h" +#include <stddef.h> + +struct constraint; +struct drawing; +struct component; + +struct constraints; + +void alloc_constraints(struct constraints *system); + +void constrain_distance_between_points(struct constraints *system, struct component *p1, struct component *p2, double distance); +void constrain_distance_to_line(struct constraints *system, struct component *point, struct component *line, double distance); +void constrain_angle(struct constraints *system, struct component *l1, struct component *l2, double theta); + +void solve_constraints(struct constraint *constraints, size_t constraints_num, struct drawing *drawing); |
