| 99 | } |
| 100 | |
| 101 | inline BufferRegion::Quadrant getQuadrant(const Index& index, const Index& bufferStartIndex) |
| 102 | { |
| 103 | if (index[0] >= bufferStartIndex[0] && index[1] >= bufferStartIndex[1]) return BufferRegion::Quadrant::TopLeft; |
| 104 | if (index[0] >= bufferStartIndex[0] && index[1] < bufferStartIndex[1]) return BufferRegion::Quadrant::TopRight; |
| 105 | if (index[0] < bufferStartIndex[0] && index[1] >= bufferStartIndex[1]) return BufferRegion::Quadrant::BottomLeft; |
| 106 | if (index[0] < bufferStartIndex[0] && index[1] < bufferStartIndex[1]) return BufferRegion::Quadrant::BottomRight; |
| 107 | return BufferRegion::Quadrant::Undefined; |
| 108 | } |
| 109 | |
| 110 | } // namespace |
| 111 |
no outgoing calls
no test coverage detected