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