From 7d5f055547e70fa93ee9ac944e62f8d657b9dc55 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 19 Oct 2018 08:36:44 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Math/Vector2.hpp | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/libjin/Math/Vector2.hpp (limited to 'src/libjin/Math/Vector2.hpp') diff --git a/src/libjin/Math/Vector2.hpp b/src/libjin/Math/Vector2.hpp deleted file mode 100644 index 51ac4a7..0000000 --- a/src/libjin/Math/Vector2.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef __LIBJIN_VECTOR_H -#define __LIBJIN_VECTOR_H - -namespace jin -{ - namespace math - { - - template - class Vector2 - { - public: - Vector2() - { - data[0] = data[1] = 0; - } - Vector2(T _x, T _y) - { - data[0] = _x; - data[1] = _y; - } - Vector2(const Vector2& v) - { - data[0] = v.data[0]; - data[1] = v.data[1]; - } - - T &x = data[0], &y = data[1]; // xy - T &w = data[0], &h = data[1]; // wh - T &colum = data[0], &row = data[1]; // colum row - - private: - T data[2]; - - }; - - } // namespace math -} // namespace jin - -#endif \ No newline at end of file -- cgit v1.1-26-g67d0