Package org.djutils.quadtree
Class Bounded
- java.lang.Object
-
- org.djutils.quadtree.Bounded
-
-
Constructor Summary
Constructors Constructor Description Bounded(Point2D.Double[] points, String id)
Construct a new Bounded object for testing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle
getBoundingRectangle()
boolean
intersects(Rectangle rectangle)
Determine if this object intersects a given Rectangle.String
toString()
-
-
-
Constructor Detail
-
Bounded
Bounded(Point2D.Double[] points, String id)
Construct a new Bounded object for testing.- Parameters:
points
- Point2D.Double[]; array of Point2D.Doubleid
- String; id of the test object
-
-
Method Detail
-
getBoundingRectangle
public Rectangle getBoundingRectangle()
- Specified by:
getBoundingRectangle
in interfaceEnvelope
-
intersects
public boolean intersects(Rectangle rectangle)
Determine if this object intersects a given Rectangle.- Parameters:
rectangle
- Rectangle; the rectangle- Returns:
- boolean; true if this object intersects the given Rectangle; false if this object does not intersect the given Rectangle
-
-