-// Copyright (C) 2007-2021 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
return epsilonEqual(dot(cros, cros), 0.0, eps);
}
+ /**
+ * Caracteristic vector size (its biggest component, in absolute)
+ */
+ inline double caracteristicDimVector(const double *v)
+ {
+ double ret = 0;
+ for (int i = 0; i < 3; i++)
+ ret = std::max(ret, std::fabs(v[i]));
+ return ret;
+ }
/**
* Compares doubles using a relative tolerance