From 5b5cfcfecadb7d0aacbdb3d2b1310ee335a8d98b Mon Sep 17 00:00:00 2001 From: jgoppert Date: Thu, 5 Nov 2015 19:37:31 -0500 Subject: [PATCH] Added more vector ctors. --- matrix/Vector3.hpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/matrix/Vector3.hpp b/matrix/Vector3.hpp index 86ee427209..ad852a88d9 100644 --- a/matrix/Vector3.hpp +++ b/matrix/Vector3.hpp @@ -13,13 +13,32 @@ namespace matrix { +template +class Vector; + template class Vector3 : public Vector { public: virtual ~Vector3() {}; - Vector3() : Vector() + Vector3() : + Vector() + { + } + + Vector3(const Vector & other) : + Vector(other) + { + } + + Vector3(const Matrix & other) : + Vector(other) + { + } + + Vector3(const Type *data_) : + Vector(data_) { }