MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / intersects

Method intersects

CodenameOne/src/com/codename1/gaming/Sprite.java:111–113  ·  view source on GitHub ↗
(Sprite other)

Source from the content-addressed store, hash-verified

109
110 /// Returns true if this sprite's bounding box intersects the other's.
111 public boolean intersects(Sprite other) {
112 return getBounds().intersects(other.getBounds());
113 }
114
115 // ---- PhysicsLinkable -------------------------------------------------
116

Callers 2

intersectionMethod · 0.95
overlapsMethod · 0.45

Calls 2

getBoundsMethod · 0.95
getBoundsMethod · 0.65

Tested by 1

intersectionMethod · 0.76