public final class Shape extends Object
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/language
License of use: Lesser
General Public License (LGPL) , no warranty
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(Rectangle2D r1,
Rectangle2D r2)
is r1 completely in r2
|
static boolean |
intersects(Rectangle2D r1,
Rectangle2D r2) |
static boolean |
overlaps(Rectangle2D extent,
Rectangle2D shape)
overlaps extent and shape.
|
public static boolean overlaps(Rectangle2D extent, Rectangle2D shape)
extent
- the extentshape
- the shapepublic static boolean intersects(Rectangle2D r1, Rectangle2D r2)
r1
- the first rectangler2
- the second rectanglepublic static boolean contains(Rectangle2D r1, Rectangle2D r2)
r1
- the first rectangler2
- the second rectangleCopyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.