@timohausmann/quadtree-ts
    Preparing search index...

    Interface Indexable

    All shape classes must implement this interface.

    interface Indexable {
        qtIndex(node: NodeGeometry): number[];
    }

    Implemented by

    Index

    Methods

    Methods

    • This method is called on all objects that are inserted into or retrieved from the Quadtree. It must determine which quadrant an object belongs to.

      Parameters

      Returns number[]

      Array containing indexes of intersecting subnodes (0-3 = top-right, top-left, bottom-left, bottom-right)