Let's say you have a system that removes everything within a square made up of 4 position points. This square is calculated by taking the center point and adding or subtracting the range from this center point seen here:
int xmin = x - range;
int ymin = y - range;
int xmax = x + range;
int ymax = y + range;
for (int i = xmin; i <= xmax; i++) {
for (int j = ymin; j <= ymax; j++) {
bounds[j, i] = 0;
}
}
How would I change these bounds to be in a circular range instead of a square?