RBushBase<T> class
RBush — a high-performance R-tree-based 2D spatial index for points and rectangles.
- Implementers
Constructors
Properties
Methods
-
all(
) → List< T> - Returns all items inside this tree.
-
clear(
) → dynamic - Removes all items from the tree.
-
collides(
RBushBox bbox) → bool -
Tests if any items intersect with
bbox
. Use search if you need the list. -
insert(
T item) → dynamic - Inserts a single item into the tree.
-
knn(
double x, double y, int k, {bool predicate(T item)?, double? maxDistance}) → List< T> - K-nearest neighbors search.
-
load(
Iterable< T> items) → RBushBase<T> -
Bulk loads items into this r-tree.
This method returns
this
to allow for this chaining:RBushBase().load([...])
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
T? item) → dynamic - Removes a single item from the tree. Does nothing if the item is not there.
-
search(
RBushBox bbox) → List< T> -
Looks for all items that intersect with
bbox
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited