Fix and improve path intersection methods
- Add path.intersectsBeam() method - Add utils.beamIntersectsLine() method - Simplify calculation and improve precision on beam intersections - Document return types properly - beamIntersectsCurve now uses the proper function from Bezier library instead of emulating it by constructing a huge line - docs: path.intersect... methods never return false, they simply return an empty array in case of no intersection
This commit is contained in:
parent
adf83eda8c
commit
4b83212f41
10 changed files with 262 additions and 39 deletions
|
@ -19,7 +19,7 @@ Point | false utils.beamsIntersect(
|
|||
|
||||
## Example
|
||||
|
||||
<Example caption="A Utils.beamIntersect() example">
|
||||
<Example caption="A Utils.beamsIntersect() example">
|
||||
```js
|
||||
({ Point, points, Path, paths, Snippet, snippets, utils, part }) => {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue