summaryrefslogtreecommitdiff
path: root/lib/maths.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-03-21 20:05:56 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-03-21 20:05:56 +0000
commit49cfebf74e97ccc88d2d6a459172cb2a17e545b8 (patch)
tree7f8192f55a35ff94ba90c83e445db871224ccde4 /lib/maths.cpp
parentSimplify creation of planes (diff)
downloadilt-49cfebf74e97ccc88d2d6a459172cb2a17e545b8.tar.bz2
ilt-49cfebf74e97ccc88d2d6a459172cb2a17e545b8.tar.xz
ilt-49cfebf74e97ccc88d2d6a459172cb2a17e545b8.zip
vector_yaw only needs 2 dimensions
Diffstat (limited to 'lib/maths.cpp')
-rw-r--r--lib/maths.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/maths.cpp b/lib/maths.cpp
index 68662fc..bf17204 100644
--- a/lib/maths.cpp
+++ b/lib/maths.cpp
@@ -76,7 +76,7 @@ rotate_yp(Rotation2D a)
}
float
-vector_yaw(const Direction3D & diff)
+vector_yaw(const Direction2D & diff)
{
return std::atan2(diff.x, diff.y);
}