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;
}
- uva11178
- uva11178
- UVa11178
- Uva11178 二维简单几何
- morley's theorem uva11178
- uva11178 Morley's Theorem
- uva11178 Morley's Theorem
- Uva11178计算几何
- 例题4.1 Morley定理 UVa11178
- UVA11178 计算几何入门题
- uva11178(二维几何计算模板)
- Morley’s Theorem(几何+UVA11178)
- UVa11178 - Morley's Theorem(入门题)
- Uva11178计算几何 Morley's Theorem(Morley定理)
- 【UVA11178】Morley's Theorem——Morley 定理
- 在AndroidStudio中如何显示出依赖库的本地存储路径
- 设计模式之单例模式
- Oracle job procedure 存储过程定时任务
- js判断移动设备 并跳转到手机版
- Toolbar + DrawerLayout快速实现高大上菜单侧滑
- uva11178
- sqlite3中的数据类型
- pypi 及如何上传自己写的库文件
- git使用笔记
- 股市经典头部形态研究(三)
- Android自定义View——弧线展示图
- bean的加载(三)缓存中获取单例bean
- OSI七层协议和TCP/IP四层协议之比较
- android开发—项目结构设计