1
0
Fork 0

🚧 Fixed an issue in Point.beamsCross

This commit is contained in:
Joost De Cock 2018-07-15 17:15:56 +02:00
parent 722bd36839
commit 2ba9b6dc1a
3 changed files with 9 additions and 24 deletions

View file

@ -41,7 +41,7 @@ export function beamsCross(a1: Point, a2: Point, b1: Point, b2: Point): Point |
// Find intersection
let x = (iB - iA) / (slopeA - slopeB);
let y = slopeA * x *iA;
let y = slopeA * x + iA;
return new Point(x, y);
}