Skip to content

Commit df6ca9e

Browse files
committed
Fixed return value.
1 parent 5c495bb commit df6ca9e

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

v3/src/geom/rectangle/ContainsRect.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@ var ContainsRect = function (rectA, rectB)
88
return false;
99
}
1010

11-
return
12-
(
13-
(rectB.x > rectA.x && rectB.x < rectA.right) &&
14-
(rectB.right > rectA.x && rectB.right < rectA.right)
15-
) && (
16-
(rectB.y > rectA.y && rectB.y < rectA.bottom) &&
17-
(rectB.bottom > rectA.y && rectB.bottom < rectA.bottom)
18-
);
19-
11+
return (
12+
(rectB.x > rectA.x && rectB.x < rectA.right) &&
13+
(rectB.right > rectA.x && rectB.right < rectA.right) &&
14+
(rectB.y > rectA.y && rectB.y < rectA.bottom) &&
15+
(rectB.bottom > rectA.y && rectB.bottom < rectA.bottom)
16+
);
2017
};
2118

2219
module.exports = ContainsRect;

0 commit comments

Comments
 (0)