Add default size to matrix (4 as it is the most common)
This commit is contained in:
@@ -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]; };
|
||||
|
||||
Reference in New Issue
Block a user