Parent Directory | Revision Log | Patch
revision 1.11 by fitzsim, Tue Feb 3 17:17:29 2004 UTC | revision 1.12 by mark, Sat Aug 14 11:21:21 2004 UTC | |
---|---|---|
# | Line 542 public class Rectangle extends Rectangle | Line 542 public class Rectangle extends Rectangle |
542 | */ | */ |
543 | public boolean intersects(Rectangle r) | public boolean intersects(Rectangle r) |
544 | { | { |
545 | return width > 0 && height > 0 && r.width > 0 && r.height > 0 | return r.width > 0 && r.height > 0 && width > 0 && height > 0 |
546 | && r.x < x + width && r.x + r.width > x | && r.x < x + width && r.x + r.width > x |
547 | && r.y < y + height && r.y + r.height > y; | && r.y < y + height && r.y + r.height > y; |
548 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |