kcl →
cos
Compute the cosine of a number (in radians).
cos(num: number) -> number
Tags
math
Arguments
Name | Type | Description | Required |
---|---|---|---|
num | number | Yes |
Returns
number
Examples
exampleSketch = startSketchOn("XZ")
|> startProfileAt([0, 0], %)
|> angledLine({
angle = 30,
length = 3 / cos(toRadians(30))
}, %)
|> yLineTo(0, %)
|> close(%)
example = extrude(5, exampleSketch)