摘要: 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 阅读全文
posted @ 2014-01-04 13:18 thetung 阅读(544) 评论(0) 推荐(0) 编辑