Salome HOME
projects
/
tools
/
medcoupling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated copyright comment
[tools/medcoupling.git]
/
src
/
INTERP_KERNEL
/
VectorUtils.hxx
diff --git
a/src/INTERP_KERNEL/VectorUtils.hxx
b/src/INTERP_KERNEL/VectorUtils.hxx
index 728c932d0a47ec6b7c9d31fec03aee8f456afebb..efb5937ba61b70078f7548e571e5b0bb661e0d4f 100644
(file)
--- a/
src/INTERP_KERNEL/VectorUtils.hxx
+++ b/
src/INTERP_KERNEL/VectorUtils.hxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-202
1 CEA/DEN, EDF R&D
+// Copyright (C) 2007-202
4 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-159,6
+159,16
@@
namespace INTERP_KERNEL
return epsilonEqual(dot(cros, cros), 0.0, eps);
}
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
/**
* Compares doubles using a relative tolerance