diff --git a/include/common/qvec.hh b/include/common/qvec.hh index b240177a..e632c92c 100644 --- a/include/common/qvec.hh +++ b/include/common/qvec.hh @@ -184,6 +184,33 @@ namespace qv { return res; } + template + qvec pow(const qvec &v1, const qvec &v2) { + qvec res; + for (int i=0; i + qvec min(const qvec &v1, const qvec &v2) { + qvec res; + for (int i=0; i + qvec max(const qvec &v1, const qvec &v2) { + qvec res; + for (int i=0; i T length2(const qvec &v1) { T len2 = 0;