summary refs log tree commit diff
path: root/src/Math/Rotation.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-02-12 12:55:11 +0100
committerMel <einebeere@gmail.com>2024-02-12 12:55:11 +0100
commitd2b5fc5b3bc648afffa42375706429685ac63794 (patch)
treea2dfbb241e1d46e5616c5884e5f3d685de2a2cb6 /src/Math/Rotation.hpp
parent588c7e87b7cab270698d43ca5c22d67793ae5fc4 (diff)
downloadmeowcraft-d2b5fc5b3bc648afffa42375706429685ac63794.tar.zst
meowcraft-d2b5fc5b3bc648afffa42375706429685ac63794.zip
Split rendering into own thread and sync through render action lists
Diffstat (limited to 'src/Math/Rotation.hpp')
-rw-r--r--src/Math/Rotation.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Math/Rotation.hpp b/src/Math/Rotation.hpp
index d12ac29..d8dff72 100644
--- a/src/Math/Rotation.hpp
+++ b/src/Math/Rotation.hpp
@@ -15,6 +15,10 @@ struct Rotation {
         vector = wrap({pitch, yaw, roll });
     }
 
+    static Rotation zero() {
+        return {0, 0, 0};
+    }
+
     Vector<3> radians() const {
         return vector.map([](auto a) { return Math::radians(a); });
     }