-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathqwe.cpp
More file actions
35 lines (28 loc) · 686 Bytes
/
qwe.cpp
File metadata and controls
35 lines (28 loc) · 686 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
#include <bits/stdc++.h>
using namespace std;
// #define INT_GEOM
#include "Geometry.h"
#define itn int
#define LL long long
#define pb push_back
#define mp make_pair
#define x first
#define y second
#define all(x) (x).begin(), (x).end()
inline int nxt(){
int x;
scanf("%d", &x);
return x;
}
int main(){
vector<Point> pts = {{4, 0}, {4, 4}, {2, 2}, {0, 4}, {0, 0}};
Point pt(2, 3);
Polygon poly(pts);
// cerr << typeid(poly).name() << "\n";
// cout << poly.contains(pt) << "\n";
// poly = ConvexPolygon(getConvexHull(pts));
// cerr << typeid(poly).name() << "\n";
// cout << poly.contains(pt) << "\n";
// cout << getConvexHull(pts).contains(pt) << "\n";
return 0;
}