Circle iterator now compensates for the matrix size and won't overflow.

This commit is contained in:
Zed A. Shaw 2024-12-25 01:15:33 -05:00
parent 35f2defc11
commit 857cd2f910
5 changed files with 25 additions and 23 deletions

View file

@ -127,8 +127,10 @@ namespace matrix {
int right = 0;
int top = 0;
int bottom = 0;
int width = 0;
int height = 0;
circle(Point center, int radius);
circle(Matrix &mat, Point center, int radius);
void update();
bool next();
};