#include "vector.h"
+#include "vector2.h"
#include "vector3.h"
#include "matrix.h"
#include "squarematrix.h"
-#include "matrix4.h"
/* This dummy file is needed to make Builder happy, and also serves as a syntax
check by pulling in all the headers. */
-void dummy() { }
--- /dev/null
+#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