From 129f2e421e16bd008cdca8713cc91f67d103d94e Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 7 Jul 2023 23:05:14 +0200 Subject: Fix minor quality issues --- src/Math/Rotation.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/Math/Rotation.hpp') diff --git a/src/Math/Rotation.hpp b/src/Math/Rotation.hpp index 0c5c606..a3420ed 100644 --- a/src/Math/Rotation.hpp +++ b/src/Math/Rotation.hpp @@ -4,16 +4,15 @@ #include "Vector.hpp" struct Rotation { -public: - Rotation() : vector{} {}; + Rotation() = default; - Rotation(Vector<3> vector) : vector{ wrap(vector) } {}; + Rotation(Vector<3> vector) : vector{ wrap(vector) } {} - Rotation(float angles[3]) : Rotation(angles[0], angles[1], angles[2]) {}; + explicit Rotation(float angles[3]) : Rotation(angles[0], angles[1], angles[2]) {} Rotation(float pitch, float yaw, float roll) { vector = wrap({pitch, yaw, roll }); - }; + } Rotation operator+(Rotation other) const { return wrap(vector + other.vector); -- cgit 1.4.1