more point docs updates
This commit is contained in:
parent
3b802a5b6a
commit
57048ecf1b
10 changed files with 63 additions and 38 deletions
|
@ -1,14 +1,26 @@
|
|||
---
|
||||
title: sitsOn()
|
||||
title: Point.sitsOn()
|
||||
---
|
||||
|
||||
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`
|
||||
are considered to be different.
|
||||
|
||||
To check if two points have the same coordinates rounded to the nearest
|
||||
millimeter, use [`Point.sitsRoughlyOn()`](/reference/api/point/sitsroughlyon/) instead.
|
||||
|
||||
</Note>
|
||||
|
||||
```js
|
||||
bool point.sitsOn(Point check)
|
||||
```
|
||||
|
||||
Returns true if the point has the same coordinates as the one you pass to it.
|
||||
|
||||
<Example
|
||||
<Example
|
||||
part="point_sitson"
|
||||
caption="An example of the Point.sitsOn() method"
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue