We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c495bb commit df6ca9eCopy full SHA for df6ca9e
1 file changed
v3/src/geom/rectangle/ContainsRect.js
@@ -8,15 +8,12 @@ var ContainsRect = function (rectA, rectB)
8
return false;
9
}
10
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
-
+ return (
+ (rectB.x > rectA.x && rectB.x < rectA.right) &&
+ (rectB.right > rectA.x && rectB.right < rectA.right) &&
+ (rectB.y > rectA.y && rectB.y < rectA.bottom) &&
+ (rectB.bottom > rectA.y && rectB.bottom < rectA.bottom)
+ );
20
};
21
22
module.exports = ContainsRect;
0 commit comments