RBush<T> class
An r-tree for RBushElement: a convenience class that does not make you write accessor functions.
- Inheritance
-
- Object
- RBushBase<
RBushElement< T> > - RBush
Properties
-
data
↔ _RBushNode<
RBushElement< T> > -
getter/setter pairinherited
-
getMinX
→ MinXYGetter<
RBushElement< T> > -
finalinherited
-
getMinY
→ MinXYGetter<
RBushElement< T> > -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toBBox
→ RBushBox Function(RBushElement<
T> item) -
finalinherited
Methods
-
all(
) → List< RBushElement< T> > -
Returns all items inside this tree.
inherited
-
clear(
) → dynamic -
Removes all items from the tree.
inherited
-
collides(
RBushBox bbox) → bool -
Tests if any items intersect with
bbox
. Use search if you need the list.inherited -
insert(
RBushElement< T> item) → dynamic -
Inserts a single item into the tree.
inherited
-
knn(
double x, double y, int k, {bool predicate(RBushElement< T> item)?, double? maxDistance}) → List<RBushElement< T> > -
K-nearest neighbors search.
inherited
-
load(
Iterable< RBushElement< items) → RBushBase<T> >RBushElement< T> > -
Bulk loads items into this r-tree.
This method returns
this
to allow for this chaining:RBushBase().load([...])
inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
RBushElement< T> ? item) → dynamic -
Removes a single item from the tree.
Does nothing if the item is not there.
inherited
-
search(
RBushBox bbox) → List< RBushElement< T> > -
Looks for all items that intersect with
bbox
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited