cpp/geometry/main.cpp

15 lines
336 B
C++
Raw Permalink Normal View History

2023-07-16 07:03:47 +00:00
#include <bits/stdc++.h>
#include "geometry.h"
using namespace std;
mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
int main() {
Polygon p(Point(0, 0), Point(0, 1), Point(1, 2), Point(2, 0));
Polygon q(Point(0, 0), Point(2, 0), Point(1, 2), Point(0, 1));
cout << p.isCongruentTo(q) << endl;
return 0;
}