------------------------------------------------------------------------------
| 1052 | |
| 1053 | //------------------------------------------------------------------------------ |
| 1054 | void 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 | //------------------------------------------------------------------------------ |
| 1064 | int vtkLineWidget::InBounds(double x[3]) |