| 913 | } |
| 914 | |
| 915 | bool 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 | |
| 942 | bool mitk::Equal(const mitk::BaseGeometry &leftHandSide, |
| 943 | const mitk::BaseGeometry &rightHandSide, |
nothing calls this directly
no test coverage detected