Clarify that rectangle/square is centered on the origin

Eventually, should allow arbitrary limit combination (rather than center
+ width)
This commit is contained in:
Jan Petykiewicz 2018-10-28 13:34:09 -07:00
parent b295c318a9
commit df5c61f1d4

View File

@ -87,7 +87,7 @@ class Polygon(Shape):
dose: float=1.0 dose: float=1.0
) -> 'Polygon': ) -> 'Polygon':
""" """
Draw a square given side_length Draw a square given side_length, centered on the origin.
:param side_length: Length of one side :param side_length: Length of one side
:param rotation: Rotation counterclockwise, in radians :param rotation: Rotation counterclockwise, in radians
@ -114,7 +114,7 @@ class Polygon(Shape):
dose: float=1.0 dose: float=1.0
) -> 'Polygon': ) -> 'Polygon':
""" """
Draw a rectangle with side lengths lx and ly Draw a rectangle with side lengths lx and ly, centered on the origin.
:param lx: Length along x (before rotation) :param lx: Length along x (before rotation)
:param ly: Length along y (before rotation) :param ly: Length along y (before rotation)