* updating kcl examples * generate images Signed-off-by: Jess Frazelle <github@jessfraz.com> * add new Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com> Co-authored-by: Jess Frazelle <github@jessfraz.com>
47 lines
155 KiB
Markdown
47 lines
155 KiB
Markdown
---
|
|
title: "acos"
|
|
excerpt: "Computes the arccosine of a number (in radians)."
|
|
layout: manual
|
|
---
|
|
|
|
Computes the arccosine of a number (in radians).
|
|
|
|
|
|
|
|
```js
|
|
acos(num: number) -> number
|
|
```
|
|
|
|
### Tags
|
|
|
|
* `math`
|
|
|
|
### Examples
|
|
|
|
```js
|
|
const sketch001 = startSketchOn('XZ')
|
|
|> startProfileAt([0, 0], %)
|
|
|> angledLine({
|
|
angle: toDegrees(acos(0.5)),
|
|
length: 10
|
|
}, %)
|
|
|> line([5, 0], %)
|
|
|> lineTo([12, 0], %)
|
|
|> close(%)
|
|
|
|
const extrude001 = extrude(5, sketch001)
|
|
```
|
|
|
|

|
|
|
|
### Arguments
|
|
|
|
* `num`: `number` (REQUIRED)
|
|
|
|
### Returns
|
|
|
|
`number`
|
|
|
|
|
|
|