| 214 | } |
| 215 | |
| 216 | void CellularLightIntensityCalculator::setCellColumn(Vec2I const& position, Cell const* cells, size_t count) { |
| 217 | size_t baseIndex = (position[0] - m_calculationRegion.xMin()) * m_calculationRegion.height() + position[1] - m_calculationRegion.yMin(); |
| 218 | for (size_t i = 0; i < count; ++i) |
| 219 | m_lightArray.cellAtIndex(baseIndex + i) = cells[i]; |
| 220 | } |
| 221 | |
| 222 | void CellularLightIntensityCalculator::addSpreadLight(Vec2F const& position, float light) { |
| 223 | Vec2F arrayPosition = position - Vec2F(m_calculationRegion.min()); |
no test coverage detected