| 711 | */ |
| 712 | template <unsigned int VIndexDimension> |
| 713 | bool IsIndexInside(const itk::Index<VIndexDimension> &index) const |
| 714 | { |
| 715 | int i, dim = index.GetIndexDimension(); |
| 716 | Point3D pt_index; |
| 717 | pt_index.Fill(0); |
| 718 | for (i = 0; i < dim; ++i) |
| 719 | { |
| 720 | pt_index[i] = index[i]; |
| 721 | } |
| 722 | return IsIndexInside(pt_index); |
| 723 | } |
| 724 | |
| 725 | /** |
| 726 | * \brief Clamp a point to lie within the geometry's world-coordinate bounds. |