MCPcopy
hub / github.com/CadQuery/cadquery / vLineTo

Method vLineTo

cadquery/cq.py:1640–1651  ·  view source on GitHub ↗

Make a vertical line from the current point to the provided y coordinate. Useful if it is more convenient to specify the end location rather than distance, as in :meth:`vLine` :param yCoord: y coordinate for the end of the line :return: the Workplane object

(self: T, yCoord: float, forConstruction: bool = False)

Source from the content-addressed store, hash-verified

1638 return self.line(distance, 0, forConstruction)
1639
1640 def vLineTo(self: T, yCoord: float, forConstruction: bool = False) -> T:
1641 """
1642 Make a vertical line from the current point to the provided y coordinate.
1643
1644 Useful if it is more convenient to specify the end location rather than distance,
1645 as in :meth:`vLine`
1646
1647 :param yCoord: y coordinate for the end of the line
1648 :return: the Workplane object with the current point at the end of the new line
1649 """
1650 p = self._findFromPoint(True)
1651 return self.lineTo(p.x, yCoord, forConstruction)
1652
1653 def hLineTo(self: T, xCoord: float, forConstruction: bool = False) -> T:
1654 """

Callers 1

test2DDrawingMethod · 0.80

Calls 2

_findFromPointMethod · 0.95
lineToMethod · 0.95

Tested by 1

test2DDrawingMethod · 0.64