| Package | Description |
|---|---|
| com.github.davidmoten.rtree | |
| com.github.davidmoten.rtree.geometry |
| 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 Comparator<HasGeometry> |
Comparators.areaComparator(Rectangle r) |
static rx.functions.Func1<HasGeometry,Double> |
Functions.areaIncrease(Rectangle r) |
static <T extends HasGeometry> |
Comparators.areaIncreaseComparator(Rectangle r) |
static <T,S extends Geometry> |
Comparators.ascendingDistance(Rectangle r)
Returns a comparator that can be used to sort entries returned by search
methods.
|
static rx.functions.Func1<Geometry,Boolean> |
RTree.intersects(Rectangle r)
Returns a predicate function that indicates if
Geometry
intersects with a given rectangle. |
rx.Observable<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.
|
static rx.functions.Func1<HasGeometry,Double> |
Functions.overlapArea(Rectangle r,
List<? extends HasGeometry> list) |
static <T extends HasGeometry> |
Comparators.overlapAreaComparator(Rectangle r,
List<T> list)
Returns a
Comparator that is a normal Double comparator for the
total of the areas of overlap of the members of the list with the
rectangle r. |
rx.Observable<Entry<T,S>> |
RTree.search(Rectangle r)
Returns an
Observable sequence of all Entrys in the
R-tree whose minimum bounding rectangle intersects with the given
rectangle. |
rx.Observable<Entry<T,S>> |
RTree.search(Rectangle r,
double maxDistance)
Returns an
Observable sequence of all Entrys in the
R-tree whose minimum bounding rectangles are strictly less than
maxDistance from the given rectangle. |
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 | Field and Description |
|---|---|
static rx.functions.Func2<Rectangle,Circle,Boolean> |
Intersects.rectangleIntersectsCircle |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Rectangle.add(Rectangle r) |
static Rectangle |
Rectangle.create(double x1,
double y1,
double x2,
double y2) |
static Rectangle |
Rectangle.create(float x1,
float y1,
float x2,
float y2) |
Rectangle |
Rectangle.mbr() |
Rectangle |
Geometry.mbr()
Returns the minimum bounding rectangle of this geometry.
|
Rectangle |
Circle.mbr() |
Rectangle |
Point.mbr() |
static Rectangle |
Geometries.rectangle(double x1,
double y1,
double x2,
double y2) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Rectangle.add(Rectangle r) |
double |
Rectangle.distance(Rectangle r) |
double |
Geometry.distance(Rectangle r)
Returns the distance to the given
Rectangle. |
double |
Circle.distance(Rectangle r) |
double |
Point.distance(Rectangle r) |
float |
Rectangle.intersectionArea(Rectangle r) |
boolean |
Rectangle.intersects(Rectangle r) |
boolean |
Geometry.intersects(Rectangle r) |
boolean |
Circle.intersects(Rectangle r) |
boolean |
Point.intersects(Rectangle r) |
Copyright © 2013–2015. All rights reserved.