Skip to content

Commit 5ebacd0

Browse files
author
Wouter Commandeur
committed
stop travis complaints
1 parent 37dcfce commit 5ebacd0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/geom/Line.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ Phaser.Line.intersectsPoints = function (a, b, e, f, asSegment, result) {
380380

381381
if (asSegment)
382382
{
383-
var u_b = ((f.y-e.y)*(b.x-a.x) - (f.x-e.x)*(b.y- a.y));
384-
var ua = (((f.x-e.x)*(a.y-e.y)) - (f.y-e.y)*(a.x-e.x)) / u_b;
385-
var ub = (((b.x- a.x)*(a.y- e.y)) - ((b.y-a.y)*(a.x- e.x))) / u_b;
383+
var uc = ((f.y-e.y)*(b.x-a.x) - (f.x-e.x)*(b.y- a.y));
384+
var ua = (((f.x-e.x)*(a.y-e.y)) - (f.y-e.y)*(a.x-e.x)) / uc;
385+
var ub = (((b.x- a.x)*(a.y- e.y)) - ((b.y-a.y)*(a.x- e.x))) / uc;
386386
if (ua >=0 && ua<=1 && ub >=0 && ub <=1) {
387387
return result;
388388
} else {

0 commit comments

Comments
 (0)