Fix bug in Halfspace.rotate when rotation matrix is passed

This commit is contained in:
Paul Romano 2022-02-15 11:11:18 -06:00
parent de50a7bfca
commit 3944c2f1e8

View file

@ -2633,7 +2633,7 @@ class Halfspace(Region):
memo = {}
# If rotated surface not in memo, add it
key = (self.surface, tuple(rotation), tuple(pivot), order, inplace)
key = (self.surface, tuple(np.ravel(rotation)), tuple(pivot), order, inplace)
if key not in memo:
memo[key] = self.surface.rotate(rotation, pivot=pivot, order=order,
inplace=inplace)