| Package | Description |
|---|---|
| com.github.davidmoten.rtree | |
| com.github.davidmoten.rtree.geometry | |
| com.github.davidmoten.rtree.geometry.internal | |
| com.github.davidmoten.rtree.internal |
| Modifier and Type | Field and Description |
|---|---|
static Rectangle |
RTree.ZERO_RECTANGLE |
| Modifier and Type | Method and Description |
|---|---|
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 | Interface and Description |
|---|---|
interface |
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 |
Rectangle.add(Rectangle r) |
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 |
Rectangle.add(Rectangle r) |
double |
Geometry.distance(Rectangle r)
Returns the distance to the given
Rectangle. |
double |
Rectangle.intersectionArea(Rectangle r) |
boolean |
Geometry.intersects(Rectangle r) |
| Modifier and Type | Class and Description |
|---|---|
class |
PointDouble |
class |
PointFloat |
class |
RectangleDouble |
class |
RectangleFloat |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
RectangleFloat.add(Rectangle r) |
Rectangle |
PointDouble.add(Rectangle r) |
Rectangle |
PointFloat.add(Rectangle r) |
Rectangle |
RectangleDouble.add(Rectangle r) |
static Rectangle |
RectangleFloat.create(float x1,
float y1,
float x2,
float y2) |
Rectangle |
CircleDouble.mbr() |
Rectangle |
CircleFloat.mbr() |
Rectangle |
RectangleFloat.mbr() |
Rectangle |
LineDouble.mbr() |
Rectangle |
PointDouble.mbr() |
Rectangle |
PointFloat.mbr() |
Rectangle |
LineFloat.mbr() |
Rectangle |
RectangleDouble.mbr() |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
RectangleFloat.add(Rectangle r) |
Rectangle |
PointDouble.add(Rectangle r) |
Rectangle |
PointFloat.add(Rectangle r) |
Rectangle |
RectangleDouble.add(Rectangle r) |
static double |
GeometryUtil.distance(double x,
double y,
Rectangle r) |
double |
CircleDouble.distance(Rectangle r) |
double |
CircleFloat.distance(Rectangle r) |
double |
RectangleFloat.distance(Rectangle r) |
double |
LineDouble.distance(Rectangle r) |
double |
PointDouble.distance(Rectangle r) |
double |
PointFloat.distance(Rectangle r) |
double |
LineFloat.distance(Rectangle r) |
double |
RectangleDouble.distance(Rectangle r) |
double |
RectangleFloat.intersectionArea(Rectangle r) |
double |
PointDouble.intersectionArea(Rectangle r) |
double |
PointFloat.intersectionArea(Rectangle r) |
double |
RectangleDouble.intersectionArea(Rectangle r) |
boolean |
CircleDouble.intersects(Rectangle r) |
boolean |
CircleFloat.intersects(Rectangle r) |
boolean |
RectangleFloat.intersects(Rectangle r) |
boolean |
LineDouble.intersects(Rectangle r) |
boolean |
PointDouble.intersects(Rectangle r) |
boolean |
PointFloat.intersects(Rectangle r) |
boolean |
LineFloat.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 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–2023. All rights reserved.