MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / contains

Method contains

Mod Utils/src/eu/the5zig/mod/util/Rectangle.java:47–63  ·  view source on GitHub ↗
(int X, int Y)

Source from the content-addressed store, hash-verified

45 }
46
47 public boolean contains(int X, int Y) {
48 int w = this.width;
49 int h = this.height;
50 if ((w | h) < 0) {
51 return false;
52 } else {
53 int x = this.x;
54 int y = this.y;
55 if (X >= x && Y >= y) {
56 w += x;
57 h += y;
58 return (w < x || w > X) && (h < y || h > Y);
59 } else {
60 return false;
61 }
62 }
63 }
64
65 public boolean contains(Rectangle r) {
66 return this.contains(r.getX(), r.getY(), r.getWidth(), r.getHeight());

Callers 15

drawScreenMethod · 0.95
updateMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45

Calls 4

getXMethod · 0.65
getYMethod · 0.65
getWidthMethod · 0.65
getHeightMethod · 0.65

Tested by

no test coverage detected