Merge branch 'fix_vec_point_constructor' into 'master'

fix vec constructor from point and make explicit

See merge request jschoeberl/netgen!250
This commit is contained in:
Joachim Schöberl 2019-09-27 15:34:36 +00:00
commit 3ad1c16fe5

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)