摘要: 判断四个点组成正方形。三个条件:1.四个边相等且长度不为0(先把点排序,再计算)2.有一个直角(根据3个点组成的两个向量点乘为0)struct point{ double x, y;} a[4];bool cmp(point a, point b){ if ... 阅读全文
posted @ 2019-01-20 20:11 鸟人呀 阅读(515) 评论(0) 推荐(0) 编辑