Add default size to matrix (4 as it is the most common)

This commit is contained in:
Godzil
2020-02-17 13:52:28 +00:00
parent c4418683c6
commit a1087a9871

View File

@@ -19,7 +19,7 @@ protected:
int size;
public:
Matrix(int size);
Matrix(int size = 4);
Matrix(double values[], int size);
double get(int x, int y) const { return this->data[this->size * x + y]; };