public class ContainedGeoGrossGate<T> extends IntersectGeoGrossGate<T> implements BoundedSpatialQuery<T>
Constructor and Description |
---|
ContainedGeoGrossGate(Datum datum,
AABB aabb,
double range) |
Modifier and Type | Method and Description |
---|---|
AABB |
getBounds()
Should return the bounds within which all of this query results are contained.
|
boolean |
queryElement(AABB aabb,
T elem)
Called by SpaceBase to inquire whether an element with the given bounding-box matches the query.
|
getGate, queryContainer, queryContainer, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
queryContainer
public AABB getBounds()
BoundedSpatialQuery
Should return the bounds within which all of this query results are contained.
getBounds
in interface BoundedSpatialQuery<T>
public boolean queryElement(AABB aabb, T elem)
SpatialQuery
Called by SpaceBase to inquire whether an element with the given bounding-box matches the query.
queryElement
in interface SpatialQuery<T>
queryElement
in class IntersectGeoGrossGate<T>
aabb
- The element’s bounding-box.elem
- The element.true
if the element matches the query, or false
if it does not.