MCPcopy Create free account
hub / github.com/Kitware/VTK / clampToExtent

Function clampToExtent

Rendering/FreeType/vtkFreeTypeTools.cxx:1677–1680  ·  view source on GitHub ↗

Clamp value to stay between the minimum and maximum extent for the specified dimension.

Source from the content-addressed store, hash-verified

1675// Clamp value to stay between the minimum and maximum extent for the
1676// specified dimension.
1677inline 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
1682VTK_ABI_NAMESPACE_END
1683} // end namespace RasterScanQuad

Callers 1

RenderBackgroundMethod · 0.85

Calls 2

minFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected