Vector, a single-column Matrix
This commit is contained in:
parent
c5b9d73a96
commit
3b713856db
1 changed files with 28 additions and 0 deletions
28
src/basics/vector.hh
Normal file
28
src/basics/vector.hh
Normal 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__ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue