Skip to content

Commit

Permalink
ADD: added origin arg to scale
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-greening committed Apr 2, 2023
1 parent 6d39f1e commit 405043b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spyrograph/_trochoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,15 @@ def scale(self, factor: Number) -> Union["_Trochoid", "_Cycloid"]:
R=self.R*factor,
r=self.r*factor,
d=self.d*factor,
thetas=self.thetas
thetas=self.thetas,
origin=self.origin
)
except TypeError:
scaled_shape = self.__class__(
R=self.R*factor,
r=self.r*factor,
thetas=self.thetas
thetas=self.thetas,
origin=self.origin
)
return scaled_shape

Expand Down

0 comments on commit 405043b

Please sign in to comment.