aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/Math/matrix.hpp
blob: b6807c097562094437a4b258527f31ec71934fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef YAGE_MATH_MATRIX_HPP
#define YAGE_MATH_MATRIX_HPP

namespace yage
{

template<typename Type, int Cols, int Rows> class Matrix
{
private:
	Type x[Cols][Rows];

public:
	Matrix()
	{
		for(int i=0; i<Cols; ++i)
		{
			for(int j=0; j<Rows; ++j)
			{
				x[i][j]=5;
			}
		}
	}

	Type get(int i, int j) const
	{
		return x[i][j];
	}
};

} // yage

#endif