summaryrefslogtreecommitdiff
path: root/inc/cad.h
blob: b180be60b6f234f9c2935df16764787b07af7445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include "cad/construction.h"
#include "cad/solve.h"
#include "cad/svg.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);