1
0
Fork 0

chore(markdown): Linting of dev docs

This commit is contained in:
Joost De Cock 2022-02-19 08:04:25 +01:00
parent 1d8beedd44
commit 265ad404da
317 changed files with 1281 additions and 1503 deletions

View file

@ -1,8 +1,9 @@
---
title: Point.copy()
---
A point's `copy()` method returns a new point with the same coordinates as the original point.
This method does _not_ copy any attributes the original point may have.
This method does *not* copy any attributes the original point may have.
## Point.copy() signature

View file

@ -7,14 +7,14 @@ A Point object represents a point on a 2D plane with an X and Y axis.
Point objects come with the following properties:
- `x` : The X-coordinate of the point
- `y` : The Y-coordinate of the point
- `attributes` : An [Attributes](../attributes) instance holding the point's attributes
- `x` : The X-coordinate of the point
- `y` : The Y-coordinate of the point
- `attributes` : An [Attributes](../attributes) instance holding the point's attributes
The point constructor takes two arguments:
- `x` : The X-coordinate of the point
- `y` : The Y-coordinate of the point
- `x` : The X-coordinate of the point
- `y` : The Y-coordinate of the point
```js
Point new Point(x, y);

View file

@ -8,7 +8,7 @@ point and the target.
This method accepts values larger than 1 to go beyond the target point, or negative values to shift the
point in the opposite direction.
If you need to move a point by a specific distance instead of a percentage, use [`Point.shiftTowards()`]((reference/api/point/shifttowards/)) or [`Point.shiftOutwards()`](reference/api/point/shiftoutwards/) instead.
If you need to move a point by a specific distance instead of a percentage, use [`Point.shiftTowards()`](\(reference/api/point/shifttowards/\)) or [`Point.shiftOutwards()`](reference/api/point/shiftoutwards/) instead.
## Point.shiftFractionTowards() signature

View file

@ -2,13 +2,13 @@
title: Point.sitsOn()
---
Returns `true` if this point has the _exact_ same coordinates as the point you pass to it.
Returns `true` if this point has the *exact* same coordinates as the point you pass to it.
<Note>
###### Too exact?
This method is _very_ precise, so points with an X-coordinate of `10` and `10.0001`
This method is *very* precise, so points with an X-coordinate of `10` and `10.0001`
are considered to be different.
To check if two points have the same coordinates rounded to the nearest

View file

@ -12,8 +12,8 @@ Point point.translate(float deltaX, float deltaY)
In other words, this will:
- Add `deltaX` to the point's X-coordinate
- Add `deltaY` to the point's Y-coordinate
- Add `deltaX` to the point's X-coordinate
- Add `deltaY` to the point's Y-coordinate
Positive values for `deltaX` will move the point to the right. Positive values for `deltaY` will move the point downwards.