Skip to content

Commit 6f75406

Browse files
committed
Attempt to simplify links
Maybe this will be more foolproof * pygorithm/geometry/rect2.py - use dot notation for links instead of full path
1 parent 4bf05ab commit 6f75406

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygorithm/geometry/rect2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def polygon(self):
6969
7070
.. caution::
7171
72-
This does not include the :py:attr:`~pygorithm.geometry.rect2.Rect2.mincorner`
72+
This does not include the :py:attr:`.mincorner`
7373
(which should be passed as offset for polygon operations)
7474
7575
:returns: polygon representation of this rectangle
@@ -215,7 +215,7 @@ def _find_intersection_rects(cls, rect1, rect2, find_mtv = True):
215215
Find the intersection between two rectangles.
216216
217217
Not intended for direct use. See
218-
:py:method:`~pygorithm.geometry.rect2.Rect2.find_intersection`
218+
:py:method:`.find_intersection`
219219
220220
:param rect1: first rectangle
221221
:type rect1: :class:`pygorithm.geometry.rect2.Rect2`
@@ -315,7 +315,7 @@ def _find_intersection_rect_poly(cls, rect, poly, offset, find_mtv = True):
315315
Find the intersection between a rect and polygon.
316316
317317
Not intended for direct use. See
318-
:py:method:`~pygorithm.geometry.rect2.Rect2.find_intersection`
318+
:py:method:`.find_intersection`
319319
320320
:param rect: rectangle
321321
:type rect: :class:`pygorithm.geometry.rect2.Rect2`
@@ -377,7 +377,7 @@ def find_intersection(cls, *args, **kwargs):
377377
False, the first argument is assumed to be a Polygon2. If you want to
378378
use a compatible rectangle class for which this check would fail, you
379379
can call
380-
:py:method:`~pygorithm.geometry.rect2.Rect2._find_intersection_rect_poly`
380+
:py:method:`._find_intersection_rect_poly`
381381
directly or pass the polygon first and invert the resulting mtv (if
382382
one is found). If two unnamed arguments are provided, they are assumed
383383
to be both rects without further checks.

0 commit comments

Comments
 (0)