-
Notifications
You must be signed in to change notification settings - Fork 211
/
Copy pathInputsRedeNeural.h
41 lines (28 loc) · 941 Bytes
/
InputsRedeNeural.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
double DistanciaProximoObstaculo(double X)
{
int indice = ProcurarProximoObstaculo(X);
return obstaculo[indice].X - X;
}
double LarguraProximoObstaculo(double X)
{
int indice = ProcurarProximoObstaculo(X);
double Largura = obstaculo[indice].sprite[obstaculo[indice].FrameAtual]->Largura;
return Largura;
}
double ComprimentoProximoObstaculo(double X)
{
int indice = ProcurarProximoObstaculo(X);
double Altura = obstaculo[indice].sprite[obstaculo[indice].FrameAtual]->Altura;
return Altura;
}
double AlturaProximoObstaculo(double X)
{
int indice = ProcurarProximoObstaculo(X);
return obstaculo[indice].Y;
}
double AlturaComComprimentoProximoObstaculo(double X)
{
int indice = ProcurarProximoObstaculo(X);
double Comprimento = obstaculo[indice].sprite[obstaculo[indice].FrameAtual]->Altura;
return (obstaculo[indice].Y + Comprimento);
}