摘要:
BOOL TheThreePointsAreCollinear(CPoint PrePoint, CPoint CurrentPoint, CPoint NextPoint){BOOL flag=false;if(PrePoint.y==CurrentPoint.y && CurrentPoint.y==NextPoint.y)//如果3个点的Y坐标都相等,则它们是共线的flag = true;else{if(PrePoint.x==CurrentPoint.x){if(CurrentPoint.x==NextPoint.x)//如果3个点的X坐标都相等,则它们是共线的flag 阅读全文