adds documentation for point.slope
This commit is contained in:
parent
f639d448a7
commit
9a41520301
1 changed files with 30 additions and 0 deletions
30
markdown/dev/reference/api/point/slope/en.md
Normal file
30
markdown/dev/reference/api/point/slope/en.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
title: Point.slope()
|
||||
---
|
||||
|
||||
The `Point.slope()` method returns slope of a line made by this Point and that Point.
|
||||
|
||||
## Signature
|
||||
|
||||
```js
|
||||
point.slope(a,b)
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
<Example caption="An example of the Point.slope() method">
|
||||
```js
|
||||
({ Point, points, Path, paths, Snippet, snippets, part }) => {
|
||||
|
||||
points.A = new Point(5,10)
|
||||
points.B = new Point(10,20)
|
||||
|
||||
point.slope(A,B)
|
||||
|
||||
|
||||
return part
|
||||
}
|
||||
```
|
||||
</Example>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue