summaryrefslogtreecommitdiff
path: root/utility/maths.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-27 20:15:28 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-27 20:22:35 +0000
commitb0b2d52a2f25d623be2498e31df9939286383722 (patch)
treea7d8c08601983976864bfeea87c6a4193a28f987 /utility/maths.h
parentfind_arc_centre given vectors (diff)
downloadilt-b0b2d52a2f25d623be2498e31df9939286383722.tar.bz2
ilt-b0b2d52a2f25d623be2498e31df9939286383722.tar.xz
ilt-b0b2d52a2f25d623be2498e31df9939286383722.zip
Calculate the radius to join to point+direction vector pairs
This uses a mental formula that was derived using symbolabs.com, it works but there just has to be simpler form of it!
Diffstat (limited to 'utility/maths.h')
-rw-r--r--utility/maths.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utility/maths.h b/utility/maths.h
index 2ce5d94..b0048c3 100644
--- a/utility/maths.h
+++ b/utility/maths.h
@@ -55,5 +55,6 @@ float normalize(float ang);
std::pair<glm::vec2, bool> find_arc_centre(glm::vec2 start, float entrys, glm::vec2 end, float entrye);
std::pair<glm::vec2, bool> find_arc_centre(glm::vec2 start, glm::vec2 ad, glm::vec2 end, glm::vec2 bd);
+float find_arcs_radius(glm::vec2 start, glm::vec2 ad, glm::vec2 end, glm::vec2 bd);
#endif