|
|
|
@ -237,12 +237,11 @@ TEST_CASE("prototype circle algorithm", "[matrix:circle]") { |
|
|
|
|
Matrix result = map.walls(); |
|
|
|
|
|
|
|
|
|
for(matrix::circle it{start, radius}; it.next();) { |
|
|
|
|
println("y={}, x0={}, x1={}", it.y, it.x0, it.x1); |
|
|
|
|
for(int i = it.x0; i < it.x1; i++) { |
|
|
|
|
result[it.y][i] += 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
matrix::dump("RESULT AFTER CIRCLE", result, start.x, start.y); |
|
|
|
|
// matrix::dump("RESULT AFTER CIRCLE", result, start.x, start.y);
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|