Clamp value to stay between the minimum and maximum extent for the specified dimension.
| 1675 | // Clamp value to stay between the minimum and maximum extent for the |
| 1676 | // specified dimension. |
| 1677 | inline void clampToExtent(int extent[6], int dim, int& value) |
| 1678 | { |
| 1679 | value = std::min(extent[2 * dim + 1], std::max(extent[2 * dim], value)); |
| 1680 | } |
| 1681 | |
| 1682 | VTK_ABI_NAMESPACE_END |
| 1683 | } // end namespace RasterScanQuad |
no test coverage detected