Currently the functions mitk::Equal (for geometries) and mitk::IsSubGeometry only offer to pass one eps for the check.
But sometimes (see e.g. MaskUtilities) you want a different eps for the spatial aspects (spacing, origin, ...) or the directions/orientation. Currently it is solved by own boilerplate code.
Introduce a overload versions
bool mitk::Equal(const mitk::BaseGeometry &leftHandSide, const mitk::BaseGeometry &rightHandSide, ScalarType spatialEps, ScalarType directionalEps, bool verbose) bool mitk::IsSubGeometry(const mitk::BaseGeometry& testGeo, const mitk::BaseGeometry& referenceGeo, ScalarType spatialEps, ScalarType directionalEps, bool verbose)
the old versions just call the new one and use their eps for spatial and directional eps.