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

Method hLineTo

cadquery/cq.py:1653–1664  ·  view source on GitHub ↗

Make a horizontal line from the current point to the provided x coordinate. Useful if it is more convenient to specify the end location rather than distance, as in :meth:`hLine` :param xCoord: x coordinate for the end of the line :return: the Workplane obje

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

Source from the content-addressed store, hash-verified

1651 return self.lineTo(p.x, yCoord, forConstruction)
1652
1653 def hLineTo(self: T, xCoord: float, forConstruction: bool = False) -> T:
1654 """
1655 Make a horizontal line from the current point to the provided x coordinate.
1656
1657 Useful if it is more convenient to specify the end location rather than distance,
1658 as in :meth:`hLine`
1659
1660 :param xCoord: x coordinate for the end of the line
1661 :return: the Workplane object with the current point at the end of the new line
1662 """
1663 p = self._findFromPoint(True)
1664 return self.lineTo(xCoord, p.y, forConstruction)
1665
1666 def polarLine(
1667 self: T, distance: float, angle: float, forConstruction: bool = False

Callers 3

test2DDrawingMethod · 0.95
testTangentArcToPointMethod · 0.80

Calls 2

_findFromPointMethod · 0.95
lineToMethod · 0.95

Tested by 2

test2DDrawingMethod · 0.76
testTangentArcToPointMethod · 0.64