RBushBox class
Bounding box for an r-tree item.
If your item class extends this one, writing toBBox
function
would be easier. Also it's got some useful methods like contains
and area.
- Implementers
Constructors
Properties
- area → double
-
Calculates area:
dx * dy
.no setter - hashCode → int
-
The hash code for this object.
no setteroverride
- margin → double
-
Calculates the box's half-perimeter:
dx + dy
.no setter - maxX ↔ double
-
getter/setter pair
- maxY ↔ double
-
getter/setter pair
- minX ↔ double
-
getter/setter pair
- minY ↔ double
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contains(
RBushBox b) → bool -
distanceSq(
double x, double y) → double -
Calculates squared distance from (
x
,y
) to this box. -
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. -
extend(
RBushBox b) → dynamic -
Extends this box's bounds to cover
b
. -
intersectionArea(
RBushBox b) → double -
Calculates area for an intersection box of this
and
b
. -
intersects(
RBushBox b) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override