We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3628a2 commit 9b2b171Copy full SHA for 9b2b171
library/core/Geometry.cc
@@ -157,6 +157,8 @@ namespace gf {
157
return std::nullopt;
158
}
159
160
+ const gf::Vec2I point = { m_x, m_y };
161
+
162
if (m_d >= 2 * m_x) {
163
m_d = m_d - 2 * m_x - 1;
164
++m_x;
@@ -169,7 +171,7 @@ namespace gf {
169
171
--m_y;
170
172
173
- return gf::vec(m_x, m_y);
174
+ return point;
175
176
177
std::vector<Vec2I> generate_circle(Vec2I center, int32_t radius)
@@ -189,8 +191,6 @@ namespace gf {
189
191
circle.emplace_back(center.x - point.y, center.y - point.x);
190
192
};
193
- plot_8_pixels({ 0, radius });
-
194
for (;;) {
195
if (auto maybe_next = andres.step(); maybe_next) {
196
plot_8_pixels(*maybe_next);
0 commit comments