diff options
Diffstat (limited to 'include/mglpp/system/vec.hpp')
-rw-r--r-- | include/mglpp/system/vec.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mglpp/system/vec.hpp b/include/mglpp/system/vec.hpp index ea6eba5..c81cdfa 100644 --- a/include/mglpp/system/vec.hpp +++ b/include/mglpp/system/vec.hpp @@ -4,7 +4,8 @@ namespace mgl { template <typename T> struct vec2 { - vec2(T x = 0, T y = 0) : x(x), y(y) {} + vec2() : x(0), y(0) {} + vec2(T x, T y) : x(x), y(y) {} vec2<T> operator + (vec2<T> other) const { return { x + other.x, y + other.y }; |