summary refs log tree commit diff
path: root/src/Math/Matrix.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Math/Matrix.hpp')
-rw-r--r--src/Math/Matrix.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Math/Matrix.hpp b/src/Math/Matrix.hpp
index 41d3661..c4532c3 100644
--- a/src/Math/Matrix.hpp
+++ b/src/Math/Matrix.hpp
@@ -3,7 +3,6 @@
 #include <sstream>
 #include "../Common/Sizes.hpp"
 #include "Rotation.hpp"
-#include "Trig.hpp"
 
 template <uint R, uint C, typename T = Real>
 struct Matrix {
@@ -47,7 +46,7 @@ struct Matrix {
     }
 
     static Matrix<4, 4, T> rotation(Rotation angles) {
-        auto radians = angles.vector.map([](auto a) { return Math::radians(a); });
+        auto radians = angles.radians();
 
         auto c = radians.map([](auto a) { return cos(a); });
         auto s = radians.map([](auto a) { return sin(a); });