5 // La classe qui suit sert UNIQUEMENT pour les sommets du dTree
7 template <int DIMENSION> class Sommet_dTree
10 double coord[DIMENSION];
15 Sommet_dTree(double *c)
17 for (int i=0;i<DIMENSION;i++) coord[i]=c[i];
19 Sommet_dTree(double c)
21 for (int i=0;i<DIMENSION;i++) coord[i]=c;
23 Sommet_dTree(const Sommet_dTree & SO)
25 for (int i=0;i<DIMENSION;i++) coord[i]=SO.coord[i];
27 Sommet_dTree(const Sommet_dTree &s1,const Sommet_dTree &s2)
29 for (int i=0;i<DIMENSION;i++) coord[i]=0.5*(s1[i]+s2[i]);
34 const double operator[](int i) const
38 double & operator[](int i)
42 Sommet_dTree & operator=(const Sommet_dTree &f)
44 for (int i=0;i<DIMENSION;i++) coord[i]=f.coord[i];return *this;
46 friend double DistanceInf(const Sommet_dTree<DIMENSION> &A,const Sommet_dTree<DIMENSION> &B)
50 for (int i=0;i<DIMENSION;i++)