summaryrefslogtreecommitdiff
path: root/board.h
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-26 12:31:32 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-26 12:31:32 -0700
commit51447980c54eab163773b80211a73dbfb3636e79 (patch)
treeb6d3ab39a382dcda4652c8475c1c66a7b977e2e1 /board.h
parent345f3e9e54381712a86a699d8968dc0f7c8565e9 (diff)
downloaddartboat-51447980c54eab163773b80211a73dbfb3636e79.tar.gz
dartboat-51447980c54eab163773b80211a73dbfb3636e79.tar.xz
move coord conversion to board code
Diffstat (limited to 'board.h')
-rw-r--r--board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board.h b/board.h
index 440143f..cc60e62 100644
--- a/board.h
+++ b/board.h
@@ -60,6 +60,9 @@ struct pcoords {
void init_board();
+struct ccoords pol_to_cart(struct pcoords c);
+struct pcoords cart_to_pol(struct ccoords c);
+
struct segment segment_from_pcoords(struct pcoords c);
struct segment segment_from_name(const char *name);
struct pcoords segment_centre(struct segment seg);