MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / intersects

Method intersects

src/main/java/field/utility/Rect.java:87–89  ·  view source on GitHub ↗
(Vec2 point)

Source from the content-addressed store, hash-verified

85 }
86
87 public boolean intersects(Vec2 point) {
88 return point.x>=x && point.x<=(x+w) && point.y>=y && point.y<=(y+h);
89 }
90
91 public boolean intersects(Rect r) {
92 return (r.x<this.x+this.w && r.w+r.x>this.x && r.y<this.y+this.h && r.y+r.h>this.y);

Callers 4

button0Method · 0.95
intersectsMethod · 0.95
intersectsWithMethod · 0.95
intersectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected