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

Method ClampPosition

Interaction/Widgets/vtkLineWidget.cxx:1054–1061  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1052
1053//------------------------------------------------------------------------------
1054void vtkLineWidget::ClampPosition(double x[3])
1055{
1056 for (int i = 0; i < 3; i++)
1057 {
1058 x[i] = std::max(x[i], this->InitialBounds[2 * i]);
1059 x[i] = std::min(x[i], this->InitialBounds[2 * i + 1]);
1060 }
1061}
1062
1063//------------------------------------------------------------------------------
1064int vtkLineWidget::InBounds(double x[3])

Callers 2

SetPoint1Method · 0.95
SetPoint2Method · 0.95

Calls 2

maxFunction · 0.50
minFunction · 0.50

Tested by

no test coverage detected