-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshape.h
More file actions
32 lines (22 loc) · 824 Bytes
/
shape.h
File metadata and controls
32 lines (22 loc) · 824 Bytes
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
#ifndef SHAPEH
#define SHAPEH
#include <iostream>
#include "graphic.h"
using namespace std;
//Constantes Globales
constexpr double epsil_zero(0.125);
//Structures
struct S2d {double x = 0.0; double y = 0.0; };
struct cercle {S2d centre; double r ;};
struct carre {S2d centre; double d;};
//Fonctions
bool collision_cercles(cercle C1, cercle C2, bool use_epsilon_zero);
bool collision_carres(carre C1, carre C2, bool use_epsilon_zero);
bool collision_carre_cercle(carre Ca, cercle Ce, bool use_epsilon_zero);
void draw_particle_(carre P);
void draw_robot_spatial_(cercle C);
void draw_robot_repairer_(cercle C);
void draw_robot_neutralizer_panne_(cercle C, double angle);
void draw_robot_neutralizer_service_(cercle C, double angle);
void draw_robot_neutralizer_collistion_(cercle C, double angle);
#endif //SHAPEH