| 189 | } |
| 190 | |
| 191 | bool checkIfIndexInRange(const Index& index, const Size& bufferSize) |
| 192 | { |
| 193 | if (index[0] >= 0 && index[1] >= 0 && index[0] < bufferSize[0] && index[1] < bufferSize[1]) |
| 194 | { |
| 195 | return true; |
| 196 | } |
| 197 | return false; |
| 198 | } |
| 199 | |
| 200 | void boundIndexToRange(Index& index, const Size& bufferSize) |
| 201 | { |
no outgoing calls