diff options
| author | Mel <einebeere@gmail.com> | 2024-02-12 12:55:11 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-02-12 12:55:11 +0100 |
| commit | d2b5fc5b3bc648afffa42375706429685ac63794 (patch) | |
| tree | a2dfbb241e1d46e5616c5884e5f3d685de2a2cb6 /src/Math | |
| parent | 588c7e87b7cab270698d43ca5c22d67793ae5fc4 (diff) | |
| download | meowcraft-d2b5fc5b3bc648afffa42375706429685ac63794.tar.zst meowcraft-d2b5fc5b3bc648afffa42375706429685ac63794.zip | |
Split rendering into own thread and sync through render action lists
Diffstat (limited to 'src/Math')
| -rw-r--r-- | src/Math/Rotation.hpp | 4 |
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); }); } |
