aboutsummaryrefslogtreecommitdiff
path: root/src/matrix.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-13 19:55:53 +0100
committerHampusM <hampus@hampusmat.com>2022-02-13 19:55:53 +0100
commitb0c265ee3d94921f55266a679d3801a4d2b4505b (patch)
treeb489dcbafddafdb05b415e920e9a2ca8524158e6 /src/matrix.hpp
parent36ce8d5d2c9b3bb9588a2bc1d96ee2678c2b990c (diff)
refactor: move some components to a engine dir
Diffstat (limited to 'src/matrix.hpp')
-rw-r--r--src/matrix.hpp64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/matrix.hpp b/src/matrix.hpp
deleted file mode 100644
index ddc1a1c..0000000
--- a/src/matrix.hpp
+++ /dev/null
@@ -1,64 +0,0 @@
-#pragma once
-
-#include "vector2.hpp"
-#include <vector>
-
-/**
- * A Matrix.
- */
-template <typename Element>
-class Matrix
-{
-public:
- /**
- * Creates a matrix.
- *
- * @param rows The number of rows of the matrix
- * @param columns The number of columns of the matrix
- */
- Matrix(unsigned int rows, unsigned int columns);
-
- /**
- * Fills the matrix with a element.
- *
- * @param element A element
- */
- void fill(Element element);
-
- /**
- * Prints the matrix.
- */
- void print();
-
- /**
- * Returns a element of the matrix.
- *
- * @param pos The position of a element
- */
- Element get(Vector2 pos);
-
- /**
- * Sets a element of the matrix.
- *
- * @param pos The position of a element
- * @param element A new element
- */
- void set(Vector2 pos, Element element);
-
- /**
- * Returns the number of rows the matrix has.
- */
- unsigned int rows();
-
- /**
- * Returns the number of columns the matrix has.
- */
- unsigned int columns();
-
-private:
- std::vector<std::vector<Element>> _matrix;
- unsigned int _rows;
- unsigned int _columns;
-};
-
-#include "matrix.tpp"