Previous: ``` startProfileAt([x, y], %) startProfileAt([x, y], sketch001) ``` New: ``` startProfile(%, at = [x, y]) startProfile(sketch001, at = [x, y]) ```
84 KiB
84 KiB
title, excerpt, layout
title | excerpt | layout |
---|---|---|
std::toRadians | Converts a number to radians from its current units. | manual |
Converts a number to radians from its current units.
toRadians(@num: number(rad)): number(rad)
Arguments
Name | Type | Description | Required |
---|---|---|---|
num |
number(rad) |
Yes |
Returns
number(rad)
Examples
exampleSketch = startSketchOn(XZ)
|> startProfile(at = [0, 0])
|> angledLine(
angle = 50,
length = 70 * cos(toRadians(45)),
)
|> yLine(endAbsolute = 0)
|> close()
example = extrude(exampleSketch, length = 5)