* Support calling KCL std KW fns, and move circle to KCL std Signed-off-by: Nick Cameron <nrc@ncameron.org> * Doc comments on parameters Signed-off-by: Nick Cameron <nrc@ncameron.org> * Update grammar Signed-off-by: Nick Cameron <nrc@ncameron.org> * Change use of counterClockWise to ccw Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
91 KiB
91 KiB
title, excerpt, layout
title | excerpt | layout |
---|---|---|
std::math::cos | Compute the cosine of a number (in radians). | manual |
Compute the cosine of a number (in radians).
cos(@num: number(rad)): number(_)
Arguments
Name | Type | Description | Required |
---|---|---|---|
num |
number(rad) |
Yes |
Returns
number(_)
Examples
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> angledLine({
angle = 30,
length = 3 / cos(toRadians(30)),
}, %)
|> yLine(endAbsolute = 0)
|> close()
example = extrude(exampleSketch, length = 5)