1
0
Fork 0

more point docs updates

This commit is contained in:
Sanne Kalkman 2021-11-06 18:20:45 +01:00
parent 3b802a5b6a
commit 57048ecf1b
10 changed files with 63 additions and 38 deletions

View file

@ -1,14 +1,15 @@
---
title: shift()
title: Point.shift()
---
Returns a new `Point` that is `distance` (mm) away in the direction of `angle` (degrees).
An angle of 0° points to the right, and the angle increases counterclockwise.
```js
Point point.shift(float degrees, float distance)
Point point.shift(float angle, float distance)
```
Returns a point that lies distance in the direction of degrees from this point.
<Example
<Example
part="point_shift"
caption="An example of the Point.shift() method"
/>