题目链接:uva 11178 - Morley's Theorem
直接按照题意处理。
<span style="font-size:18px;">#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
const double pi = 4 * atan(1);
const double eps = 1e-9;
inline int dcmp (double x) { if (fabs(x) < eps) return 0; else return x < 0 ? -1 : 1; }
inline double getDistance (double x, double y) { return sqrt(x * x + y * y); }
struct Point {
double x, y;
Point (double x = 0, double y = 0): x(x), y(y)