-
Notifications
You must be signed in to change notification settings - Fork 0
/
cell.h
35 lines (26 loc) · 600 Bytes
/
cell.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef CELL_H
#define CELL_H
class Cell
{
public:
Cell(int i, double a, double b);
//METHODES
double get_cnt() const;
double get_ctg() const;
double get_ctd() const;
int get_ind() const;
void set_cnt(double c);
void set_ctg(double g);
void set_ctd(double d);
void set_ind(int i);
private:
//ATTRIBUTS
int m_ind ; // indice de la cellule
double m_a ; //frontiere droite du domaine
double m_b ; // frontiere gauche du domaine
double m_cnt = 0.; // point centre
double m_ctg = 0.; //interface gauche
double m_ctd = 0.; //interface droite
double m_h=0;
};
#endif // CELL_H