diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-27 20:16:33 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-27 20:22:35 +0000 |
commit | 63425aea8fadec35857d059a0cdc869863ddbaf5 (patch) | |
tree | c7bf106a7a0aaccdd35ec60a7bb6ea9761466842 /utility/maths.h | |
parent | Calculate the radius to join to point+direction vector pairs (diff) | |
download | ilt-63425aea8fadec35857d059a0cdc869863ddbaf5.tar.bz2 ilt-63425aea8fadec35857d059a0cdc869863ddbaf5.tar.xz ilt-63425aea8fadec35857d059a0cdc869863ddbaf5.zip |
Calculate the candidate radii to join to point+direction angle pairs
Returns a pair of the left and right variants.
Diffstat (limited to 'utility/maths.h')
-rw-r--r-- | utility/maths.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utility/maths.h b/utility/maths.h index b0048c3..89cb7cb 100644 --- a/utility/maths.h +++ b/utility/maths.h @@ -55,6 +55,7 @@ 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); +std::pair<float, float> find_arcs_radius(glm::vec2 start, float entrys, glm::vec2 end, float entrye); float find_arcs_radius(glm::vec2 start, glm::vec2 ad, glm::vec2 end, glm::vec2 bd); #endif |