fix(pre_commit): 🎨 auto format pre-commit hooks
This commit is contained in:
1 parent
57335ef986
commit
7e21aaaa1a
1 file changed
+2
-2
@@ -31,10 +31,10 @@ def get_polygon_center(polygon: np.ndarray) -> Point:
|
||||
Point(x=1, y=1)
|
||||
```
|
||||
"""
|
||||
|
||||
|
||||
# This is one of the 3 candidate algorithms considered for centroid calculation.
|
||||
# For a more detailed discussion, see PR #1084 and commit eb33176
|
||||
|
||||
|
||||
shift_polygon = np.roll(polygon, -1, axis=0)
|
||||
signed_areas = np.cross(polygon, shift_polygon) / 2
|
||||
if signed_areas.sum() == 0:
|
||||
|
||||
Reference in new issue
Block a user