mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 13:50:33 +05:00
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:
commit
3ad1c16fe5
@ -101,9 +101,8 @@ namespace netgen
|
|||||||
explicit Vec (const Point<D,T> & p)
|
explicit Vec (const Point<D,T> & p)
|
||||||
{ for (int i = 0; i < D; i++) x[i] = p(i); }
|
{ for (int i = 0; i < D; i++) x[i] = p(i); }
|
||||||
|
|
||||||
Vec (const Vec & p1, const Vec & p2)
|
explicit Vec(const Point<D,T>& p1, const Point<D,T>& p2)
|
||||||
{ for(int i=0; i<D; i++) x[i] = p2(i)-p1(1); }
|
{ for(int i=0; i<D; i++) x[i] = p2(i)-p1(i); }
|
||||||
|
|
||||||
|
|
||||||
template <typename T2>
|
template <typename T2>
|
||||||
Vec & operator= (const Vec<D,T2> & p2)
|
Vec & operator= (const Vec<D,T2> & p2)
|
||||||
|
Loading…
Reference in New Issue
Block a user