We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec817d6 commit 63a0012Copy full SHA for 63a0012
math/vector2.cpp
@@ -1,8 +1,8 @@
1
#include "vector2.hpp"
2
-#include "cassert"
+#include <cassert>
3
4
-vector2::vector2(float x, float y) : x(x), y(y){};
5
-vector2::vector2(const vector2 &vector) : x(vector.x), y(vector.y) {}
+vector2::vector2(float x, float y) : x(x), y(y) {};
+vector2::vector2(const vector2 &vector) : x(vector.x), y(vector.y) {};
6
7
vector2 vector2::operator+(const vector2 &v) const {
8
return vector2(x + v.x, y + v.y);
0 commit comments