-
Notifications
You must be signed in to change notification settings - Fork 0
/
geomod.h
51 lines (40 loc) · 1.12 KB
/
geomod.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
//fichier geomod.h, THEVENOZ Julien et MANEFF Lucas
#ifndef GEOMOD_H
#define GEOMOD_H
#include <vector>
struct Point{
double x;
double y;
};
struct Vect{
double x;
double y;
};
struct Circle{
double center_x;
double center_y;
double radius;
};
double getSize();
void setSize(double new_size);
double getEpsilonZero();
bool equalZero(double p);
std::vector<Point> findEquiPoint(Point pt);
double normalize(double scalar);
Point normalize(Point pt);
double makeVector(Point start_point, Point end_point, Vect& smaller_vect);
double calculateNorm(Vect v);
bool pointsEqual(Point pt1, Point pt2);
bool inCircle(Point pt, Circle c);
bool crossingCircles(Circle c1, Circle c2);
void displayCircle(Circle c);
void displayDisque(Circle c);
void displayBase(Circle c, int couleur);
void displayRayonCom(Circle c);
void displayLine(Point start, Point end);
void displayPaint();
void displayPoint(Point pos, int couleur);
void displayCarre(Point pos, int couleur, bool rempli);
void displayCroix(Point pos, int couleur);
void displayTriangle(Point pos, int couleur,bool rempli);
#endif