diff options
Diffstat (limited to 'utility/maths.cpp')
-rw-r--r-- | utility/maths.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utility/maths.cpp b/utility/maths.cpp index aa44220..fb14a17 100644 --- a/utility/maths.cpp +++ b/utility/maths.cpp @@ -22,6 +22,12 @@ vector_yaw(const glm::vec3 & diff) } float +vector_pitch(const glm::vec3 & diff) +{ + return std::atan(diff.y); +} + +float round_frac(const float & v, const float & frac) { return std::round(v / frac) * frac; |