🚧 Fixed an issue in Point.beamsCross
This commit is contained in:
parent
722bd36839
commit
2ba9b6dc1a
3 changed files with 9 additions and 24 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue