43 lines
82 KiB
Markdown
43 lines
82 KiB
Markdown
---
|
|
title: "tau"
|
|
excerpt: "Return the value of `tau`. The full circle constant (τ). Equal to 2π."
|
|
layout: manual
|
|
---
|
|
|
|
**WARNING:** This function is deprecated.
|
|
|
|
Return the value of `tau`. The full circle constant (τ). Equal to 2π.
|
|
|
|
**DEPRECATED** use the constant TAU
|
|
|
|
```js
|
|
tau() -> number
|
|
```
|
|
|
|
### Tags
|
|
|
|
* `math`
|
|
|
|
|
|
|
|
### Returns
|
|
|
|
`number`
|
|
|
|
|
|
### Examples
|
|
|
|
```js
|
|
exampleSketch = startSketchOn("XZ")
|
|
|> startProfileAt([0, 0], %)
|
|
|> angledLine({ angle = 50, length = 10 * tau() }, %)
|
|
|> yLineTo(0, %)
|
|
|> close()
|
|
|
|
example = extrude(exampleSketch, length = 5)
|
|
```
|
|
|
|

|
|
|
|
|