-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpoint.h
More file actions
55 lines (42 loc) · 732 Bytes
/
point.h
File metadata and controls
55 lines (42 loc) · 732 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef POINT_H
#define POINT_H
#include <cmath>
class Point
{
public:
Point();
Point(int,int);
Point(int,int,Point*);
Point(const Point&);
bool operator==(const Point&);
double x;
double y;
Point* next;
};
class PList
{
public:
PList();
PList(const PList&);
~PList();
void operator =(const PList&);
Point& operator [](int);
int getSize();
///Functions
void pushPoint(Point);
Point popPoint();
Point& getPoint(int);
void removeIndex(int);
void replaceIndex(int, Point);
void setNextIndex(int, Point);
void clear();
//Some Features about points
PList drawingRect();
void rotatePoints(double);
void makeBest();
void removeRepetition();
private:
Point *startPoint;
int s;
};
#endif // POINT_H