MCPcopy Create free account
hub / github.com/MITK/MITK / IsIndexInside

Function IsIndexInside

Modules/Core/include/mitkBaseGeometry.h:713–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers 1

IsInsideMethod · 0.85

Calls 1

FillMethod · 0.45

Tested by

no test coverage detected