Package org.djutils.quadtree
Class Bounded
java.lang.Object
org.djutils.quadtree.Bounded
- All Implemented Interfaces:
Envelope
Simple object that implements BoundingBoxed.
-
Constructor Summary
ConstructorDescriptionBounded
(Point2D.Double[] points, String id) Construct a new Bounded object for testing. -
Method Summary
Modifier and TypeMethodDescriptionboolean
intersects
(Rectangle rectangle) Determine if this object intersects a given Rectangle.toString()
-
Constructor Details
-
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 Details
-
getBoundingRectangle
- Specified by:
getBoundingRectangle
in interfaceEnvelope
-
intersects
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
-
toString
-