利用鞋带公式计算多边形面积(叉积原理)
把绝对值去了就好
参考:https://blog.csdn.net/stereohomology/article/details/46942889
def validate_clockwise_points(points):
"""
Validates that the points that the 4 points that dlimite a polygon are in clockwise order.
"""
if len(points) != 8:
raise Exception("Points list not valid." + str(len(points)))
point = [
[int(points[0]) , int(points[1])],