summaryrefslogtreecommitdiff
path: root/inc/cad/svg.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cad/svg.h')
-rw-r--r--inc/cad/svg.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/cad/svg.h b/inc/cad/svg.h
new file mode 100644
index 0000000..68634b8
--- /dev/null
+++ b/inc/cad/svg.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "cad/solve.h"
+#include "cad/topology.h"
+
+enum LineStyle {
+ LSTYLE_NORMAL,
+ LSTYLE_CONSTRUCTION,
+ LSTYLE_INDICATOR,
+};
+#define TEXT_OFFSET 0.4
+
+void plot_line_between(struct point p1, struct point p2);
+void plot_arc_between_style(struct point c, struct point p1, struct point p2, enum LineStyle style);
+void plot_arc_between(struct point c, struct point p1, struct point p2);
+void plot_text(struct point p, double angle, char* str);
+
+void draw_constraints(struct constraints *constraints);
+void draw_topology(struct topology *topo);