diff --git a/src/build123d/geometry.py b/src/build123d/geometry.py index c0559622..be101118 100644 --- a/src/build123d/geometry.py +++ b/src/build123d/geometry.py @@ -2041,6 +2041,23 @@ def rotated( def move(self, loc: Location) -> Plane: """Change the position & orientation of self by applying a relative location + Args: + loc (Location): relative change + + Returns: + Plane: relocated plane (self) + """ + self.wrapped.Transform(loc.wrapped.Transformation()) + self._origin = Vector(self.wrapped.Location()) + self.origin = self._origin + self.x_dir = Vector(self.wrapped.XAxis().Direction()) + self.y_dir = Vector(self.wrapped.YAxis().Direction()) + self.z_dir = Vector(self.wrapped.Axis().Direction()) + return self + + def moved(self, loc: Location) -> Plane: + """Return a new Plane with a new position & orientation by applying a relative location + Args: loc (Location): relative change