kcl →
angledLineToX
Create a line segment from the current 2-dimensional sketch origin
along some angle (in degrees) for some length, ending at the provided value in the 'x' dimension.
angledLineToX(data: AngledLineToData, sketch: Sketch, tag?: TagDeclarator) -> Sketch
Arguments
Name | Type | Description | Required |
---|---|---|---|
data | AngledLineToData | Data to draw an angled line to a point. | Yes |
sketch | Sketch | A sketch is a collection of paths. | Yes |
tag | TagDeclarator | No |
Returns
Sketch
- A sketch is a collection of paths.
Examples
exampleSketch = startSketchOn('XZ')
|> startProfileAt([0, 0], %)
|> angledLineToX({ angle: 30, to: 10 }, %)
|> line([0, 10], %)
|> line([-10, 0], %)
|> close(%)
example = extrude(10, exampleSketch)