| Modifier and Type | Method and Description |
|---|---|
Optional<Rectangle> |
RTree.mbr()
If the RTree has no entries returns
Optional.empty() otherwise returns
the minimum bounding rectangle of all entries in the RTree. |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<Geometry> |
RTree.intersects(Rectangle r)
Returns a predicate function that indicates if
Geometry intersects
with a given rectangle. |
Iterable<Entry<T,S>> |
RTree.nearest(Rectangle r,
double maxDistance,
int maxCount)
Returns the nearest k entries (k=maxCount) to the given rectangle where the
entries are strictly less than a given maximum distance from the rectangle.
|
Iterable<Entry<T,S>> |
RTree.search(Rectangle r)
|
Iterable<Entry<T,S>> |
RTree.search(Rectangle r,
double maxDistance)
|
Visualizer |
RTree.visualize(int width,
int height,
Rectangle view)
Returns a
Visualizer for an image of given width and height and
restricted to the given view of the coordinates. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Point |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Rectangle.add(Rectangle r) |
static Rectangle |
Rectangle.create(double... values) |
static Rectangle |
Rectangle.create(double[] mins,
double[] maxes) |
static Rectangle |
Rectangle.createOrdered(double[] x,
double[] y) |
Rectangle |
Geometry.mbr()
Returns the minimum bounding rectangle of this geometry.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Rectangle.add(Rectangle r) |
double |
Geometry.distance(Rectangle r)
Returns the distance to the given
Rectangle. |
double |
Rectangle.intersectionVolume(Rectangle r) |
boolean |
Geometry.intersects(Rectangle r) |
| Modifier and Type | Class and Description |
|---|---|
class |
PointDouble |
class |
RectangleDouble |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
PointDouble.add(Rectangle r) |
Rectangle |
RectangleDouble.add(Rectangle r) |
Rectangle |
PointDouble.mbr() |
Rectangle |
RectangleDouble.mbr() |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
PointDouble.add(Rectangle r) |
Rectangle |
RectangleDouble.add(Rectangle r) |
static double |
GeometryUtil.distance(double[] x,
Rectangle r) |
double |
PointDouble.distance(Rectangle r) |
double |
RectangleDouble.distance(Rectangle r) |
double |
PointDouble.intersectionVolume(Rectangle r) |
double |
RectangleDouble.intersectionVolume(Rectangle r) |
boolean |
PointDouble.intersects(Rectangle r) |
boolean |
RectangleDouble.intersects(Rectangle r) |
| Modifier and Type | Method and Description |
|---|---|
static Rectangle |
Util.mbr(Collection<? extends HasGeometry> items)
Returns the minimum bounding rectangle of a number of items.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,S extends Geometry> |
Comparators.ascendingDistance(Rectangle r)
Returns a comparator that can be used to sort entries returned by search
methods.
|
static <T extends HasGeometry> |
Comparators.overlapVolumeThenVolumeIncreaseThenVolumeComparator(Rectangle r,
List<T> list) |
static <T extends HasGeometry> |
Comparators.volumeIncreaseThenVolumeComparator(Rectangle r) |
Copyright © 2013–2022. All rights reserved.