摘要:
我是求出来所有点的坐标用叉积算的面积……据说可以证明出来S△PQR = S△ABC/7 1 #include <cstdio> 2 #include <cmath> 3 4 struct Point 5 { 6 double x, y; 7 Point( double x = 0, double y = 0 ):x(x), y(y) { } 8 }; 9 10 Point operator+( Point A, Point B ) 11 { 12 return Point( A.x + B.x, A.y + B.y ); 13 } 14 15 P... 阅读全文
posted @ 2013-06-15 20:52
冰鸮
阅读(331)
评论(0)
推荐(0)

浙公网安备 33010602011771号