Browse Source

Added more vector ctors.

master
jgoppert 9 years ago
parent
commit
5b5cfcfeca
  1. 21
      matrix/Vector3.hpp

21
matrix/Vector3.hpp

@ -13,13 +13,32 @@ @@ -13,13 +13,32 @@
namespace matrix
{
template <typename Type, size_t M>
class Vector;
template<typename Type>
class Vector3 : public Vector<Type, 3>
{
public:
virtual ~Vector3() {};
Vector3() : Vector<Type, 3>()
Vector3() :
Vector<Type, 3>()
{
}
Vector3(const Vector<Type, 3> & other) :
Vector<Type, 3>(other)
{
}
Vector3(const Matrix<Type, 3, 1> & other) :
Vector<Type, 3>(other)
{
}
Vector3(const Type *data_) :
Vector<Type, 3>(data_)
{
}

Loading…
Cancel
Save