随笔分类 - 计算几何
摘要:struct point { double x,y; }; struct line { point a,b; }lines[110]; double chaji(point a,point b,point c,point d) { return (b.x-a.x)*(d.y-c.y)-(b.y-a.y)*(d.x-c.x); } bool isin(line l...
阅读全文
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 struct circle 10 { 11 double x,y,r; 12 }c[25]...
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 5 struct point 6 { 7 double x,y; 8 }p[110]; 9 10 double siz(point p1,point p2,point p3)11 {12 ...
阅读全文
摘要:1 #include 2 #include 3 4 using namespace std; 5 6 struct line 7 { 8 double x1; 9 double y1;10 double x2;11 double y2;12 }l[110];...
阅读全文
摘要:1 struct point 2 { 3 double x, y; 4 point( double _x = 0, double _y = 0 ) 5 { 6 x = _x; 7 y = _y; 8 } 9 point ope...
阅读全文

浙公网安备 33010602011771号