#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int ll; //typedef pair P; const double PI=acos(-1.0); const double EPS=1e-10; double add(double a, double b){ if(abs(a+b)EPS){ return x>xa>>ya>>ta; ta=ta/180*PI; P p0=P(xa, ya); double x11, y11, x12, y12, x21, y21, x22, y22; cin>>x11>>y11>>x12>>y12>>x21>>y21>>x22>>y22; P p1=P(x11, y11), p2=P(x12, y12), q1=P(x21, y21), q2=P(x22, y22); double t=atan(p2-p1)-atan(q2-q1); double tb=ta+t; P q0=p1-rot(q1-p0, t); printf("%.10lf %.10lf %.10lf\n", q0.x, q0.y, tb/PI*180); return 0; }