QuadTree<T> class

Inheritance
Available extensions

Constructors

QuadTree(num left, num top, num width, num height, {int? maxDepth, int? maxItems})
factory

Properties

bottom → num
The y-coordinate of the bottom edge.
no setterinherited
bottomLeft → Point<num>
no setterinherited
bottomRight → Point<num>
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
height → num
The height of the rectangle.
finalinherited
left → num
The x-coordinate of the left edge.
finalinherited
maxDepth → int
final
maxItems → int
final
The x-coordinate of the right edge.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
top → num
The y-coordinate of the top edge.
finalinherited
topLeft → Point<num>
no setterinherited
topRight → Point<num>
no setterinherited
width → num
The width of the rectangle.
finalinherited

Methods

boundingBox(Rectangle<num> other) → Rectangle<num>
Returns a new rectangle which completely contains this and other.
inherited
clear() → void
containsPoint(Point<num> another) → bool
Tests whether another is inside or along the edges of this.
inherited
containsRectangle(Rectangle<num> another) → bool
Tests whether this entirely contains another.
inherited
insert(T item, Point<num> atPoint, {dynamic id}) → bool
intersection(Rectangle<num> other) → Rectangle<num>?
Computes the intersection of this and other.
inherited
intersects(Rectangle<num> other) → bool
Returns true if this intersects other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(Rectangle<num> range) → List<T>
remove(T item) → void
removeById(dynamic id) → void
toRect() → Rect

Available on Rectangle<num>, provided by the RectangleExtension extension

Converts this math Rectangle into an ui Rect.
toString() → String
A string representation of this object.

Operators

operator ==(Object other) → bool
The equality operator.
inherited