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

Method Equal

Modules/Core/src/DataManagement/mitkBaseGeometry.cpp:915–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

913}
914
915bool mitk::Equal(const mitk::BaseGeometry::BoundingBoxType &leftHandSide,
916 const mitk::BaseGeometry::BoundingBoxType &rightHandSide,
917 ScalarType eps,
918 bool verbose)
919{
920 bool result = true;
921
922 BaseGeometry::BoundsArrayType rightBounds = rightHandSide.GetBounds();
923 BaseGeometry::BoundsArrayType leftBounds = leftHandSide.GetBounds();
924 BaseGeometry::BoundsArrayType::Iterator itLeft = leftBounds.Begin();
925 for (BaseGeometry::BoundsArrayType::Iterator itRight = rightBounds.Begin(); itRight != rightBounds.End(); ++itRight)
926 {
927 if ((!mitk::Equal(*itLeft, *itRight, eps)))
928 {
929 if (verbose)
930 {
931 MITK_INFO << "[( Geometry3D::BoundingBoxType )] bounds are not equal.";
932 MITK_INFO << "rightHandSide is " << setprecision(12) << *itRight << " : leftHandSide is " << *itLeft
933 << " and tolerance is " << eps;
934 }
935 result = false;
936 }
937 itLeft++;
938 }
939 return result;
940}
941
942bool mitk::Equal(const mitk::BaseGeometry &leftHandSide,
943 const mitk::BaseGeometry &rightHandSide,

Callers

nothing calls this directly

Calls 12

MatrixEqualElementWiseFunction · 0.85
GetAxisVectorMethod · 0.80
GetMatrixMethod · 0.80
EqualFunction · 0.50
GetBoundsMethod · 0.45
BeginMethod · 0.45
EndMethod · 0.45
GetSpacingMethod · 0.45
GetOriginMethod · 0.45
GetExtentMethod · 0.45
GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected