summary refs log tree commit diff
path: root/src/Math/Rotation.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-07-08 03:25:44 +0200
committerMel <einebeere@gmail.com>2023-07-08 03:25:44 +0200
commitfe2baedc760c2f29e2c720f6b1132a2de33c5430 (patch)
treedfbe1c72a17805a3cab6e0d47433e9021890c9ca /src/Math/Rotation.hpp
parent41fbca10f6c6cdd9c1623f1347e7ecb40f5e7f59 (diff)
downloadmeowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.tar.zst
meowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.zip
Use own size types
Diffstat (limited to 'src/Math/Rotation.hpp')
-rw-r--r--src/Math/Rotation.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Math/Rotation.hpp b/src/Math/Rotation.hpp
index a3420ed..83c1109 100644
--- a/src/Math/Rotation.hpp
+++ b/src/Math/Rotation.hpp
@@ -8,9 +8,9 @@ struct Rotation {
 
     Rotation(Vector<3> vector) : vector{ wrap(vector) } {}
 
-    explicit Rotation(float angles[3]) : Rotation(angles[0], angles[1], angles[2]) {}
+    explicit Rotation(Real angles[3]) : Rotation(angles[0], angles[1], angles[2]) {}
 
-    Rotation(float pitch, float yaw, float roll) {
+    Rotation(Real pitch, Real yaw, Real roll) {
         vector = wrap({pitch, yaw, roll });
     }
 
@@ -26,15 +26,15 @@ struct Rotation {
         return v.map([](auto a) { return fmod(a, 360.0f); });
     }
 
-    float& pitch() {
+    Real& pitch() {
         return vector[0];
     }
 
-    float& yaw() {
+    Real& yaw() {
         return vector[1];
     }
 
-    float& roll() {
+    Real& roll() {
         return vector[2];
     }