aboutsummaryrefslogtreecommitdiff
path: root/src/math/mat4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/mat4.cpp')
-rw-r--r--src/math/mat4.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/math/mat4.cpp b/src/math/mat4.cpp
index ece42d8..6418e9c 100644
--- a/src/math/mat4.cpp
+++ b/src/math/mat4.cpp
@@ -3,6 +3,8 @@
#include <cmath>
#include "math/math_vector.h"
+using namespace engine::math;
+
Mat4 Mat4::idty() {
return {
1.f, 0.f, 0.f, 0.f,
@@ -127,7 +129,7 @@ std::array<MathVector4, 4> Mat4::to_vecs() {
}};
}
-Mat4 operator*(float fac, Mat4 m) {
+Mat4 engine::math::operator*(float fac, Mat4 m) {
return {
fac * m.values[ 0], fac * m.values[ 1], fac * m.values[ 2], fac * m.values[ 3],
fac * m.values[ 4], fac * m.values[ 5], fac * m.values[ 6], fac * m.values[ 7],