Previous: ``` startProfileAt([x, y], %) startProfileAt([x, y], sketch001) ``` New: ``` startProfile(%, at = [x, y]) startProfile(sketch001, at = [x, y]) ```
45 lines
78 KiB
Markdown
45 lines
78 KiB
Markdown
---
|
|
title: "std::math::sin"
|
|
excerpt: "Compute the sine of a number (in radians)."
|
|
layout: manual
|
|
---
|
|
|
|
Compute the sine of a number (in radians).
|
|
|
|
|
|
|
|
```js
|
|
sin(@num: number(Angle)): number(_)
|
|
```
|
|
|
|
|
|
### Arguments
|
|
|
|
| Name | Type | Description | Required |
|
|
|----------|------|-------------|----------|
|
|
| `num` | `number(Angle)` | | Yes |
|
|
|
|
### Returns
|
|
|
|
`number(_)`
|
|
|
|
|
|
### Examples
|
|
|
|
```js
|
|
exampleSketch = startSketchOn(XZ)
|
|
|> startProfile(at = [0, 0])
|
|
|> angledLine(
|
|
angle = 50,
|
|
length = 15 / sin(135deg),
|
|
)
|
|
|> yLine(endAbsolute = 0)
|
|
|> close()
|
|
|
|
example = extrude(exampleSketch, length = 5)
|
|
```
|
|
|
|

|
|
|
|
|