Ejemplo n.º 1
0
 def rotate(self, axis: Axis, angle: float):
     self.plane.rotate(axis, angle)
     CollectionOfMeshes.rotate(self, axis, angle)
     return self
Ejemplo n.º 2
0
 def rotate(self, axis: Axis, angle: float):
     self.translation = axis.rotation_matrix(angle) @ self.translation
     CollectionOfMeshes.rotate(self, axis, angle)
     return self
Ejemplo n.º 3
0
 def rotate(self, other_axis: Axis, angle: float):
     self.axis.rotate(other_axis, angle)
     CollectionOfMeshes.rotate(self, other_axis, angle)
     return self
Ejemplo n.º 4
0
 def rotate(self, axis: Axis, angle: float):
     self.translation = axis.rotate_vector([self.translation], angle)[0, :]
     CollectionOfMeshes.rotate(self, axis, angle)
     return self