RBushElement<T> class
A container for your data, to be used with RBush.
Constructors
- RBushElement({required double minX, required double minY, required double maxX, required double maxY, required T data})
- RBushElement.fromList(List bbox, T data)
Properties
- area → double
-
Calculates area:
dx * dy
.no setterinherited - data → T
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- margin → double
-
Calculates the box's half-perimeter:
dx + dy
.no setterinherited - maxX ↔ double
-
getter/setter pairinherited
- maxY ↔ double
-
getter/setter pairinherited
- minX ↔ double
-
getter/setter pairinherited
- minY ↔ double
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contains(
RBushBox b) → bool -
inherited
-
distanceSq(
double x, double y) → double -
Calculates squared distance from (
x
,y
) to this box.inherited -
enlargedArea(
RBushBox b) → double -
Calculates area for an extendes bounding box that
would cover both this one and
b
. See extend for the extension method.inherited -
extend(
RBushBox b) → dynamic -
Extends this box's bounds to cover
b
.inherited -
intersectionArea(
RBushBox b) → double -
Calculates area for an intersection box of this
and
b
.inherited -
intersects(
RBushBox b) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited