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

Function Equal

Modules/Core/include/mitkVector.h:191–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 */
190 template <typename TCoordRep, unsigned int NPointDimension>
191 inline bool Equal(const itk::Vector<TCoordRep, NPointDimension> &vector1,
192 const itk::Vector<TCoordRep, NPointDimension> &vector2,
193 TCoordRep eps = mitk::eps,
194 bool verbose = false)
195 {
196 bool isEqual = true;
197 typename itk::Vector<TCoordRep, NPointDimension>::VectorType diff = vector1 - vector2;
198 for (unsigned int i = 0; i < NPointDimension; i++)
199 {
200 if (DifferenceBiggerOrEqualEps(diff[i], eps))
201 {
202 isEqual = false;
203 break;
204 }
205 }
206
207 ConditionalOutputOfDifference(vector1, vector2, eps, verbose, isEqual);
208
209 return isEqual;
210 }
211
212 /**
213 * \ingroup MITKTestingAPI

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45

Tested by

no test coverage detected