-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtools.h
43 lines (37 loc) · 994 Bytes
/
tools.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
//OUSMANE EL HAMID / LILIAN LAPORTE / tools.h
//Architecture b1
#include <cmath>
#include "graphic_color.h"
#ifndef TOOLS_HEADER_H
#define TOOLS_HEADER_H
struct points
{
double x;
double y;
};
struct cercle
{
double rayon;
points centre;
};
struct vecteur
{
points translation;
};
struct segment
{
points origine;
vecteur v;
};
double length (const vecteur ab);
double distance_orthogonale(const vecteur& v, const vecteur& w);
vecteur liaison_cercle (const cercle& C, const cercle C2);
bool inter_cercle_seg (const cercle& C, const segment& A_B, double distance_ecart);
bool inter_cercle (const cercle& C, const cercle& C2, double distance_ecart);
double distance(const points& A, const points& B);
double longueur_vect(const vecteur& v1);
void draw_logement(const cercle& C, Color couleur);
void draw_transport(const cercle& C, Color couleur);
void draw_production(const cercle& C, Color couleur);
void draw_link(const cercle& C1, const cercle& C2, Color couleur);
#endif