pysal.lib.cg.convex_hull

pysal.lib.cg.convex_hull(points)[源代码]

返回一组点的凸壳。

凸壳(点列表)->多边形

参数:
points : 计算凸壳的点列表

实例

>>> points = [Point((0, 0)), Point((4, 4)), Point((4, 0)), Point((3, 1))]
>>> convex_hull(points)
[(0.0, 0.0), (4.0, 0.0), (4.0, 4.0)]