From d2b5fc5b3bc648afffa42375706429685ac63794 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 12 Feb 2024 12:55:11 +0100 Subject: Split rendering into own thread and sync through render action lists --- src/Math/Rotation.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Math/Rotation.hpp') 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); }); } -- cgit 1.4.1