forked from codysauermann/GeometricDataStructures2D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimplePoint2D.h
More file actions
24 lines (22 loc) · 708 Bytes
/
SimplePoint2D.h
File metadata and controls
24 lines (22 loc) · 708 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
#ifndef SIMPLEPOINT2D_H
#define SIMPLEPOINT2D_H
#include "Number.h"
#include <utility>
struct SimplePoint2D
{
Number x, y;
SimplePoint2D();
SimplePoint2D(const SimplePoint2D& p);
SimplePoint2D(Number x, Number y);
SimplePoint2D(SimplePoint2D&& p);
SimplePoint2D& operator=(SimplePoint2D&& p);
SimplePoint2D& operator=(const SimplePoint2D& p);
bool operator<(const SimplePoint2D p);
bool operator<=(const SimplePoint2D p);
bool operator==(const SimplePoint2D p);
bool operator>=(const SimplePoint2D p);
bool operator>(const SimplePoint2D p);
bool operator!=(const SimplePoint2D p);
};
SimplePoint2D randomSimplePoint2D(int minX, int maxX, int minY, int maxY);
#endif