Type of the custom data property (optional, inferred automatically).
OptionaldataCustom data.
Height of the rectangle.
Width of the rectangle.
X start of the rectangle (top left).
Y start of the rectangle (top left).
Determine which quadrant this rectangle belongs to.
Quadtree node to be checked
Array containing indexes of intersecting subnodes (0-3 = top-right, top-left, bottom-left, bottom-right)
Class representing a Rectangle
Example: Without custom data
Example: With custom data
Example: With custom data (TS)
Example: With custom class extending Rectangle
Example: With custom class and mapping
Example: With custom object (implements RectangleGeometry)
Example: With custom object and mapping