Circle iterator now compensates for the matrix size and won't overflow.
This commit is contained in:
parent
35f2defc11
commit
857cd2f910
5 changed files with 25 additions and 23 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue