diff options
| author | Mel <einebeere@gmail.com> | 2022-10-05 18:27:19 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-05 18:27:19 +0200 |
| commit | f66811b772c81fc182e353308b1c1a3667201e9b (patch) | |
| tree | cae289545b06c032060508352ae2ffc53daea9ed /src/Math/Rotation.hpp | |
| parent | 0631fb666d2a28a6eb9b8d1578675699b41a5de6 (diff) | |
| download | meowcraft-f66811b772c81fc182e353308b1c1a3667201e9b.tar.zst meowcraft-f66811b772c81fc182e353308b1c1a3667201e9b.zip | |
Non-camera relative movement
Diffstat (limited to 'src/Math/Rotation.hpp')
| -rw-r--r-- | src/Math/Rotation.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Math/Rotation.hpp b/src/Math/Rotation.hpp index 334ede2..73a8219 100644 --- a/src/Math/Rotation.hpp +++ b/src/Math/Rotation.hpp @@ -24,7 +24,7 @@ public: } static Vector<3> wrap(Vector<3> v) { - return v.apply([=](float a) -> float { return fmod(a, 360.0f); }); + return v.map([](auto a) { return fmod(a, 360.0f); }); } Vector<3> vector; |
