Vector, a single-column Matrix

This commit is contained in:
Eryn Wells 2014-08-08 20:44:43 -07:00
parent c5b9d73a96
commit 3b713856db

28
src/basics/vector.hh Normal file
View file

@ -0,0 +1,28 @@
/* vector.hh
* vim: set tw=80:
* Eryn Wells <eryn@erynwells.me>
*/
#ifndef __BASICS_VECTOR_HH__
#define __BASICS_VECTOR_HH__
#include "basics/matrix.hh"
#include "basics/types.hh"
namespace charles {
namespace basics {
template<uint N>
struct Vector
: public Matrix<N,1>
{ };
typedef Vector<4> Vector4;
} /* namespace basics */
} /* namespace charles */
#endif /* __BASICS_VECTOR_HH__ */