1 #include "MeshCut_Carre.hxx"
5 using namespace MESHCUT;
8 Carre::Carre(float _x0, float _x1, float _y0, float _y1)
16 bool Carre::disjoint(Carre* c2)
18 return (x0 > c2->x1 || x1 < c2->x0 || y0 > c2->y1 || y1 < c2->y0);
21 bool Carre::contientNoeud(int ngnoeud, Maillage *MAILLAGE)
23 float x = *(MAILLAGE->XX + ngnoeud - 1);
24 float y = *(MAILLAGE->YY + ngnoeud - 1);
25 return (x >= x0 && x <= x1 && y >= y0 && y <= y1);
28 void Carre::affichage()
30 cout << "x0=" << x0 << " ";
31 cout << "x1=" << x1 << " ";
32 cout << "y0=" << y0 << " ";
33 cout << "y1=" << y1 << " ";