-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlano.cpp
More file actions
58 lines (43 loc) · 1.01 KB
/
Copy pathPlano.cpp
File metadata and controls
58 lines (43 loc) · 1.01 KB
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
#include "Plano.h"
#include <cstring>
#include <iostream>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
Plano::Plano(int indice, vector<Linea *> aristas, vector<Punto *> vertices){
this->indice=indice;
this->aristas=aristas;
this->vertices=vertices;
//this->esta_en_objetos.clear();
}
int Plano::get_idice(){
return indice;
}
vector<Linea *> Plano::get_aristas(){
return aristas;
}
Linea* Plano::get_aristas(int indice){
return aristas[indice];
}
vector<Punto *> Plano::get_vertices(){
return vertices;
}
Punto* Plano::get_vertices(int indice){
return vertices[indice];
}
bool Plano::equals(Plano plano){
bool respuesta=false;
if(this->indice==plano.indice)
respuesta=true;
return true;
}
bool Plano::aristas_iguales(vector< Linea*> aristas){
bool respuesta=false;
if(this->aristas==aristas)
respuesta=true;
return respuesta;
}
/* void Plano::anadir_Objeto(Objeto* objeto){
esta_en_objetos.push_back(objeto)
} */