-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCell.h
62 lines (39 loc) · 972 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// Created by Benedikt on 08.11.2016.
//
#ifndef GITTERGAS_CELL_H
#define GITTERGAS_CELL_H
#include <vector>
#include "Basis.h"
using namespace std;
class Cell {
public:
//Konstruktoren
Cell(int id, vector<double> Koordinaten);
Cell(int id, int wert, vector<double> Koordinaten);
Cell();
//Getter-Methoden
int get_id() const;
int get_value() const;
vector<double> get_coords() const;
Basis get_atoms();
//Relationen
vector<double> distance__to(Cell c);
double distance_to(Cell c);
//Setter-Methoden
void set_value(int wert);
void move_to(vector<double> Koordinaten);
void set_base(Basis basis);
//Operatoren
bool operator==(const Cell &comp);
bool operator!=(const Cell &comp);
//Transformationen
void move_by(vector<double> Vektor);
private:
//Eingeschaften
int id;
int value;
vector<double> coords;
Basis base;
};
#endif //GITTERGAS_CELL_H