摘要:
#include #include const double eps = 1e-10;struct Point{ double x,y; Point(double x = 0, double y = 0):x(x),y(y){} //初始化列表构造函数};typedef Point Vector;//向量+向量 = 向量, 点 + 向量 = 向量Vector operator + (Vector A, Vector B){return Vector(A.x+B.x, A.y+B.y);}//点-点=向量Vector operator - (Point A,Point B){retu... 阅读全文