def rotate(self, axis: Axis, angle: float): self.plane.rotate(axis, angle) CollectionOfMeshes.rotate(self, axis, angle) return self
def rotate(self, axis: Axis, angle: float): self.translation = axis.rotation_matrix(angle) @ self.translation CollectionOfMeshes.rotate(self, axis, angle) return self
def rotate(self, other_axis: Axis, angle: float): self.axis.rotate(other_axis, angle) CollectionOfMeshes.rotate(self, other_axis, angle) return self
def rotate(self, axis: Axis, angle: float): self.translation = axis.rotate_vector([self.translation], angle)[0, :] CollectionOfMeshes.rotate(self, axis, angle) return self