summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utility/maths.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utility/maths.cpp b/utility/maths.cpp
index a3315a3..5cae411 100644
--- a/utility/maths.cpp
+++ b/utility/maths.cpp
@@ -18,8 +18,7 @@ flat_orientation(const glm::vec3 & diff)
float
flat_angle(const glm::vec3 & diff)
{
- const auto flatdiff {glm::normalize(glm::vec3 {diff.x, 0, diff.z})};
- return glm::orientedAngle(flatdiff, north, up);
+ return std::atan2(diff.x, diff.z);
}
float