| 184 | } |
| 185 | |
| 186 | void EntityMap::forEachEntity(RectF const& boundBox, EntityCallback const& callback) const { |
| 187 | m_spatialMap.forEach(m_geometry.splitRect(boundBox), callback); |
| 188 | } |
| 189 | |
| 190 | void EntityMap::forEachEntityLine(Vec2F const& begin, Vec2F const& end, EntityCallback const& callback) const { |
| 191 | return m_spatialMap.forEach(m_geometry.splitRect(RectF::boundBoxOf(begin, end)), [&](EntityPtr const& entity) { |
no test coverage detected