1
0
Fork 0

Docs and code cleanup

This commit is contained in:
Wouter van Wageningen 2023-04-28 18:26:55 +00:00
parent 486fde8b67
commit a5f141a586
3 changed files with 7 additions and 8 deletions

View file

@ -126,7 +126,6 @@ export function beamsIntersect(a1, a2, b1, b2) {
export function beamIntersectsCurve(start, end, from, cp1, cp2, to) {
let _start = new Point(start.x + (start.x - end.x) * 1000, start.y + (start.y - end.y) * 1000)
let _end = new Point(end.x + (end.x - start.x) * 1000, end.y + (end.y - start.y) * 1000)
console.log({ _start: _start, _end: _end })
return lineIntersectsCurve(_start, _end, from, cp1, cp2, to)
}