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

Method hLine

cadquery/cq.py:1631–1638  ·  view source on GitHub ↗

Make a horizontal line from the current point the provided distance :param distance: (x) distance from current point :return: the Workplane object with the current point at the end of the new line

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

Source from the content-addressed store, hash-verified

1629 return self.line(0, distance, forConstruction)
1630
1631 def hLine(self: T, distance: float, forConstruction: bool = False) -> T:
1632 """
1633 Make a horizontal line from the current point the provided distance
1634
1635 :param distance: (x) distance from current point
1636 :return: the Workplane object with the current point at the end of the new line
1637 """
1638 return self.line(distance, 0, forConstruction)
1639
1640 def vLineTo(self: T, yCoord: float, forConstruction: bool = False) -> T:
1641 """

Callers 15

test2DDrawingMethod · 0.95
testSweepMethod · 0.80
testCutMethod · 0.80
testCutThroughAllMethod · 0.80
testFilletMethod · 0.80
testChamferMethod · 0.80
testSplitErrorMethod · 0.80
testSimpleShellMethod · 0.80
testFindSolidMethod · 0.80
testTangentArcToPointMethod · 0.80
test_findFromEdgeMethod · 0.80

Calls 1

lineMethod · 0.95

Tested by 15

test2DDrawingMethod · 0.76
testSweepMethod · 0.64
testCutMethod · 0.64
testCutThroughAllMethod · 0.64
testFilletMethod · 0.64
testChamferMethod · 0.64
testSplitErrorMethod · 0.64
testSimpleShellMethod · 0.64
testFindSolidMethod · 0.64
testTangentArcToPointMethod · 0.64
test_findFromEdgeMethod · 0.64