| Package | Description |
|---|---|
| com.github.davidmoten.rtree | |
| com.github.davidmoten.rtree.geometry | |
| com.github.davidmoten.rtree.internal |
| Modifier and Type | Method and Description |
|---|---|
com.github.davidmoten.guavamini.Optional<Rectangle> |
RTree.mbr()
If the RTree has no entries returns
Optional.absent() otherwise
returns the minimum bounding rectangle of all entries in the RTree. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 | Class and Description |
|---|---|
class |
Point |
| Modifier and Type | Field and Description |
|---|---|
static rx.functions.Func2<Circle,Rectangle,Boolean> |
Intersects.circleIntersectsRectangle |
static rx.functions.Func2<Geometry,Rectangle,Boolean> |
Intersects.geometryIntersectsRectangle |
static rx.functions.Func2<Line,Rectangle,Boolean> |
Intersects.lineIntersectsRectangle |
static rx.functions.Func2<Rectangle,Circle,Boolean> |
Intersects.rectangleIntersectsCircle |
static rx.functions.Func2<Rectangle,Geometry,Boolean> |
Intersects.rectangleIntersectsGeometry |
static rx.functions.Func2<Rectangle,Line,Boolean> |
Intersects.rectangleIntersectsLine |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Point.add(Rectangle r) |
Rectangle |
Rectangle.add(Rectangle r) |
Rectangle |
Point.mbr() |
Rectangle |
Line.mbr() |
Rectangle |
Circle.mbr() |
Rectangle |
Geometry.mbr()
Returns the minimum bounding rectangle of this geometry.
|
static Rectangle |
Geometries.rectangle(double x1,
double y1,
double x2,
double y2) |
static Rectangle |
Geometries.rectangle(float x1,
float y1,
float x2,
float y2) |
static Rectangle |
Geometries.rectangleGeographic(double lon1,
double lat1,
double lon2,
double lat2) |
static Rectangle |
Geometries.rectangleGeographic(float lon1,
float lat1,
float lon2,
float lat2) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
Point.add(Rectangle r) |
Rectangle |
Rectangle.add(Rectangle r) |
double |
Point.distance(Rectangle r) |
double |
Line.distance(Rectangle r) |
double |
Circle.distance(Rectangle r) |
double |
Geometry.distance(Rectangle r)
Returns the distance to the given
RectangleImpl. |
float |
Point.intersectionArea(Rectangle r) |
float |
Rectangle.intersectionArea(Rectangle r) |
boolean |
Point.intersects(Rectangle r) |
boolean |
Line.intersects(Rectangle r) |
boolean |
Circle.intersects(Rectangle r) |
boolean |
Geometry.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 extends HasGeometry> |
Comparators.areaIncreaseThenAreaComparator(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 <T extends HasGeometry> |
Comparators.overlapAreaThenAreaIncreaseThenAreaComparator(Rectangle r,
List<T> list) |
Copyright © 2013–2016. All rights reserved.