Skip to content

Commit a55c131

Browse files
committed
Further compile errors
Interestingly it compiles on 3.6 before but not 3.5 (readthedocs is on 3.5) * pygorithm/geometry/rect2.py - *args must be after all specified unnamed or named arguments and before **kwargs.
1 parent cc92b1f commit a55c131

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygorithm/geometry/rect2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def contains_point(rect, point):
168168
pass
169169

170170
@staticmethod
171-
def find_intersection(*args, find_mtv=True):
171+
def find_intersection(find_mtv=True, *args):
172172
"""
173173
Determine the state of intersection between a rect and a
174174
polygon.
@@ -215,10 +215,10 @@ def find_intersection(*args, find_mtv=True):
215215
# find mtv for big square against square
216216
touching, overlapping, mtv = rect2.Rect2.find_intersection(big_square, unit_square)
217217
218-
:param args: 2 arguments for rect-rect, 3 arguments for rect-polygon (see above)
219-
:type args: list
220218
:param find_mtv: if mtv should be found where possible (default ``True``)
221219
:type find_mtv: bool
220+
:param args: 2 arguments for rect-rect, 3 arguments for rect-polygon (see above)
221+
:type args: list
222222
:returns: (touching, overlapping, (mtv distance, mtv axis))
223223
:rtype: (bool, bool, (:class:`numbers.Number`, :class:`pygorithm.geometry.vector2.Vector2`) or None)
224224
"""

0 commit comments

Comments
 (0)