From b0b2d52a2f25d623be2498e31df9939286383722 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 27 Feb 2021 20:15:28 +0000 Subject: 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! --- utility/maths.h | 1 + 1 file changed, 1 insertion(+) (limited to 'utility/maths.h') 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 find_arc_centre(glm::vec2 start, float entrys, glm::vec2 end, float entrye); std::pair 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 -- cgit v1.2.3