uva11178

来源:互联网 发布:100 是淘宝极限词吗 编辑:程序博客网 时间:2024/06/08 18:37

未完。。。

include

using namespace std;

include

include

struct Point {
double x,y;
Point(double x = 0, double y = 0):x(x),y(y) {

}

}

Point operatror-(Point A,Point B) {
return Point(A.x - B.x,A.y - B.y);
}

Point getPoint() {
double x,y;
scanf(“%lf,%lf”,&x,&y);
return Point(x,y);
}
Point Rotate(Point A,double rad) {
return Point(A.x* cos(rad) - A.y * sin(rad),A.x * som(rad) + A.y * cos(rad));
}
double Dot(Point a,Point b) {
return a.x*b.x + a.y * b.y;
}
double length(Point a) {
return sqrt(Dot(a,a));
}

double Angle(Point a,Point b) {
return acos(Dot(a,b)/(length(a)*length(b0));
}
Point getJD(Point a,Point b,Point c) {
Point temp1 = c - b;
double r1 = Angle(a - b,temp1);
temp1 = Rotate(temp1,1/3*r1);

Point temp2 = b - c;double r2 = Angle(a - c,temp2);temp2 = Rotate(temp2,r2 * (-1 * 3 ));

}
int main() {
int x1,x2,x3,y1,y2,y3;
int T;
scanf(“%d”,&T);
while(T–) {
// scanf(“%d %d %d %d %d %d”,&x1,&y1,&x2,&y2,&x3,&y3);
Point A,B,C,D,E,F;
A = getPoint();
B = getPoint();
C = getPoint();

}return 0;

}

0 0