]> git.tdb.fi Git - libs/math.git/blobdiff - source/linal/vector2.h
Redesign the Vector interface
[libs/math.git] / source / linal / vector2.h
diff --git a/source/linal/vector2.h b/source/linal/vector2.h
deleted file mode 100644 (file)
index fed7721..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef MSP_LINAL_VECTOR2_H_
-#define MSP_LINAL_VECTOR2_H_
-
-#include "vector.h"
-
-namespace Msp {
-namespace LinAl {
-
-template<typename T>
-class Vector2: public Vector<T, 2>
-{
-public:
-       Vector2() { }
-       Vector2(const T *d): Vector<T, 2>(d) { }
-       Vector2(T, T);
-       template<typename U>
-       Vector2(const Vector<U, 2> &v): Vector<T, 2>(v) { }
-};
-
-template<typename T>
-inline Vector2<T>::Vector2(T x, T y)
-{
-       this->data[0] = x;
-       this->data[1] = y;
-}
-
-} // namespace LinAl
-} // namespace Msp
-
-#endif