From 5dae8f8d10d506abc3c75a1f66c1dfe620c84fc1 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 15 Feb 2022 20:27:51 +0100 Subject: refactor: improve project design --- src/engine/matrix.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/engine/matrix.hpp') diff --git a/src/engine/matrix.hpp b/src/engine/matrix.hpp index ddc1a1c..c243eaf 100644 --- a/src/engine/matrix.hpp +++ b/src/engine/matrix.hpp @@ -1,6 +1,8 @@ #pragma once -#include "vector2.hpp" +#include "engine/bounds.hpp" +#include "engine/vector2.hpp" + #include /** @@ -13,10 +15,9 @@ public: /** * Creates a matrix. * - * @param rows The number of rows of the matrix - * @param columns The number of columns of the matrix + * @param bounds The bounds of the matrix */ - Matrix(unsigned int rows, unsigned int columns); + explicit Matrix(const Bounds &bounds); /** * Fills the matrix with a element. -- cgit v1.2.3-18-g5258