[Polygon] rect() should call rectangle() with positive width/height
no big deal, but this makes vertex order consistent
This commit is contained in:
parent
838c742651
commit
fb822829ec
1 changed files with 1 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ class Polygon(Shape):
|
||||||
else:
|
else:
|
||||||
raise PatternError('Two of ymin, yctr, ymax, ly must be None!')
|
raise PatternError('Two of ymin, yctr, ymax, ly must be None!')
|
||||||
|
|
||||||
poly = Polygon.rectangle(lx, ly, offset=(xctr, yctr), repetition=repetition)
|
poly = Polygon.rectangle(abs(lx), abs(ly), offset=(xctr, yctr), repetition=repetition)
|
||||||
return poly
|
return poly
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue