rect.intersects(left, top, right, bottom)
This version of the function does not change the rect:
"Returns true if this rectangle intersects the specified rectangle. In no
event is this rectangle modified. No check is performed to see if either
rectangle is empty. To record the intersection, use intersect() or
setIntersect()."
There's a version called intersect(left, top, right, bottom) (note the lack
of final 's' in the method name) that changes the source rect.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en