diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:06:50 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-14 13:06:50 +0000 |
commit | a117836ed6bbbc750830a96647da88d5506e69f8 (patch) | |
tree | cfa56e664c825c4f618c37164b2cffac15bcc0e1 /utility/maths.h | |
parent | Simplify flat_angle (diff) | |
download | ilt-a117836ed6bbbc750830a96647da88d5506e69f8.tar.bz2 ilt-a117836ed6bbbc750830a96647da88d5506e69f8.tar.xz ilt-a117836ed6bbbc750830a96647da88d5506e69f8.zip |
Construct an Arc from three points
Diffstat (limited to 'utility/maths.h')
-rw-r--r-- | utility/maths.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utility/maths.h b/utility/maths.h index 31f5960..572268a 100644 --- a/utility/maths.h +++ b/utility/maths.h @@ -8,6 +8,8 @@ struct Arc : public std::pair<float, float> { using std::pair<float, float>::pair; + Arc(const glm::vec3 & centre3, const glm::vec3 & e0p, const glm::vec3 & e1p); + float operator[](unsigned int i) const { @@ -44,6 +46,4 @@ arc_length(const Arc & arc) float normalize(float ang); -Arc create_arc(const glm::vec3 & centre3, const glm::vec3 & e0p, const glm::vec3 & e1p); - #endif |