Source code for pyleecan.Methods.Geometry.SurfLine.rotate

from numpy import exp


[docs]def rotate(self, angle): """Rotate the surface Parameters ---------- self : SurfLine A SurfLine object angle : float the angle of rotation [rad] Returns ------- None """ if angle == 0: return # Nothing to do # Check if the Surface is correct self.check() # rotation of every line in the Surface for line in self.line_list: line.rotate(angle) if self.point_ref is not None: self.point_ref = self.point_ref * exp(1j * angle)