摘要:
给出圆心坐标和半径 还有线段的两个端点判断线段是全在圆内还是部分在圆内 或是 全在圆外#include#include#includeusing namespace std;struct point{double x;double y;};double length(point a,point b){ return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y)); }double dot(point a,point b){ return a.x*b.x+a.y*b.y;}double cross(point a,point b){ ... 阅读全文