diff options
-rw-r--r-- | lib/polygon.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/polygon.py b/lib/polygon.py index 7be3f8b..8047ab1 100644 --- a/lib/polygon.py +++ b/lib/polygon.py @@ -291,7 +291,8 @@ class SphericalPolygon(object): def _unique_points(self): """ - Remove duplicate `points`. Order is preserved. + Return a copy of `points` with duplicates removed. + Order is preserved. .. note:: Output cannot be used to build a new polygon. @@ -305,10 +306,10 @@ class SphericalPolygon(object): def _sorted_points(self, preserve_order=True, unique=False): """ - Sort `points` such that smallest (*x*, *y*, *z*) - is on top. + Return a copy of `points` sorted such that smallest + (*x*, *y*, *z*) is on top. - .. note:: Output caanot be used to build a new + .. note:: Output cannot be used to build a new polygon. Parameters @@ -316,7 +317,7 @@ class SphericalPolygon(object): preserve_order: bool Preserve original order? If `True`, polygon is rotated around min point. If `False`, all points - are sorted. + are sorted in ascending order. unique : bool Exclude duplicates. |