fix vec constructor from point and make explicit

This commit is contained in:
Christopher Lackner 2019-09-27 17:01:12 +02:00
parent 05c6a20038
commit 4d5fe67d83

View File

@ -101,9 +101,8 @@ namespace netgen
explicit Vec (const Point<D,T> & p)
{ for (int i = 0; i < D; i++) x[i] = p(i); }
Vec (const Vec & p1, const Vec & p2)
{ for(int i=0; i<D; i++) x[i] = p2(i)-p1(1); }
explicit Vec(const Point<D,T>& p1, const Point<D,T>& p2)
{ for(int i=0; i<D; i++) x[i] = p2(i)-p1(i); }
template <typename T2>
Vec & operator= (const Vec<D,T2> & p2)