various fixes
This commit is contained in:
parent
b98553a770
commit
d14182998b
6 changed files with 31 additions and 24 deletions
|
|
@ -109,6 +109,7 @@ class PivotableImpl(Pivotable, metaclass=ABCMeta):
|
|||
"""
|
||||
__slots__ = ()
|
||||
|
||||
@abstractmethod
|
||||
def rotate_around(self: J, pivot: vector2, rotation: float) -> J:
|
||||
pivot = numpy.array(pivot, dtype=float)
|
||||
self.translate(-pivot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue