tldraw/docs/gen/snapAngle-function-1.mdx
Steve Ruiz 096df3209b
[1/2] Move docs to brivate (#1640)
This PR moves the docs site to the private repo while keeping the docs
content on the public repo.

### Change Type

- [x] `documentation`
2023-06-23 14:23:14 +00:00

65 lines
685 B
Text

---
title: snapAngle
status: published
category: primitives
group: Function
author: api
date: 06/23/2023
order: 85
---<Small>Public Function</Small>
Clamp rotation to even segments.
##### Parameters
<ParametersTable>
<ParametersTableRow>
<ParametersTableName>
`r`
</ParametersTableName>
<ParametersTableDescription>
```ts
number
```
The rotation in radians.
</ParametersTableDescription>
</ParametersTableRow>
<ParametersTableRow>
<ParametersTableName>
`segments`
</ParametersTableName>
<ParametersTableDescription>
```ts
number
```
The number of segments.
</ParametersTableDescription>
</ParametersTableRow>
</ParametersTable>
##### Returns
```ts
number
```