Move the specified distance from the current point, without drawing. :param xDist: desired x distance, in local coordinates :type xDist: float, or none for zero :param yDist: desired y distance, in local coordinates :type yDist: float, or none for zero.
(self: T, xDist: float = 0, yDist: float = 0)
| 1717 | |
| 1718 | # relative move in current plane, not drawing |
| 1719 | def move(self: T, xDist: float = 0, yDist: float = 0) -> T: |
| 1720 | """ |
| 1721 | Move the specified distance from the current point, without drawing. |
| 1722 | |
| 1723 | :param xDist: desired x distance, in local coordinates |
| 1724 | :type xDist: float, or none for zero |
| 1725 | :param yDist: desired y distance, in local coordinates |
| 1726 | :type yDist: float, or none for zero. |
| 1727 | |
| 1728 | Not to be confused with :meth:`center`, which moves the center of the entire |
| 1729 | workplane, this method only moves the current point ( and therefore does not affect objects |
| 1730 | already drawn ). |
| 1731 | |
| 1732 | See :meth:`moveTo` to do the same thing but using absolute coordinates |
| 1733 | """ |
| 1734 | p = self._findFromPoint(True) |
| 1735 | newCenter = p + Vector(xDist, yDist, 0) |
| 1736 | return self.newObject([self.plane.toWorldCoords(newCenter)]) |
| 1737 | |
| 1738 | def slot2D(self: T, length: float, diameter: float, angle: float = 0) -> T: |
| 1739 | """ |