Skip to content

Commit 89608c2

Browse files
committed
expose square_range and diamond_range in Array2D
1 parent be52d95 commit 89608c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/gf2/core/Array2D.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ namespace gf {
117117
return square_range(position, 2);
118118
}
119119

120-
private:
121120
NeighborSquareRange<int> square_range(Vec2I position, int radius) const noexcept
122121
{
123122
assert(valid(position));
@@ -138,6 +137,7 @@ namespace gf {
138137
return { dx, dy, position, radius };
139138
}
140139

140+
private:
141141
std::size_t linearize(Vec2I index) const
142142
{
143143
return static_cast<std::size_t>(index.x) + (static_cast<std::size_t>(index.y) * static_cast<std::size_t>(m_size.x));

0 commit comments

Comments
 (0)