summaryrefslogtreecommitdiff
path: root/src/common/vector_math.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common/vector_math.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/common/vector_math.h b/src/common/vector_math.h
index b2d630829..2d56f168c 100644
--- a/src/common/vector_math.h
+++ b/src/common/vector_math.h
@@ -60,10 +60,8 @@ public:
60 } 60 }
61 61
62 Vec2() = default; 62 Vec2() = default;
63 Vec2(const T a[2]) : x(a[0]), y(a[1]) { 63 Vec2(const T a[2]) : x(a[0]), y(a[1]) {}
64 } 64 Vec2(const T& _x, const T& _y) : x(_x), y(_y) {}
65 Vec2(const T& _x, const T& _y) : x(_x), y(_y) {
66 }
67 65
68 template <typename T2> 66 template <typename T2>
69 Vec2<T2> Cast() const { 67 Vec2<T2> Cast() const {
@@ -201,10 +199,8 @@ public:
201 } 199 }
202 200
203 Vec3() = default; 201 Vec3() = default;
204 Vec3(const T a[3]) : x(a[0]), y(a[1]), z(a[2]) { 202 Vec3(const T a[3]) : x(a[0]), y(a[1]), z(a[2]) {}
205 } 203 Vec3(const T& _x, const T& _y, const T& _z) : x(_x), y(_y), z(_z) {}
206 Vec3(const T& _x, const T& _y, const T& _z) : x(_x), y(_y), z(_z) {
207 }
208 204
209 template <typename T2> 205 template <typename T2>
210 Vec3<T2> Cast() const { 206 Vec3<T2> Cast() const {
@@ -409,10 +405,8 @@ public:
409 } 405 }
410 406
411 Vec4() = default; 407 Vec4() = default;
412 Vec4(const T a[4]) : x(a[0]), y(a[1]), z(a[2]), w(a[3]) { 408 Vec4(const T a[4]) : x(a[0]), y(a[1]), z(a[2]), w(a[3]) {}
413 } 409 Vec4(const T& _x, const T& _y, const T& _z, const T& _w) : x(_x), y(_y), z(_z), w(_w) {}
414 Vec4(const T& _x, const T& _y, const T& _z, const T& _w) : x(_x), y(_y), z(_z), w(_w) {
415 }
416 410
417 template <typename T2> 411 template <typename T2>
418 Vec4<T2> Cast() const { 412 Vec4<T2> Cast() const {