From 49cfebf74e97ccc88d2d6a459172cb2a17e545b8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 21 Mar 2024 20:05:56 +0000 Subject: vector_yaw only needs 2 dimensions --- lib/maths.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/maths.cpp') 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); } -- cgit v1.2.3