Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • QuadTree

Index

Constructors

constructor

  • new QuadTree(bounds: Rect, capacity?: number, maxLevels?: number, level?: number): QuadTree
  • Parameters

    • bounds: Rect
    • capacity: number = 4
    • maxLevels: number = 4
    • level: number = 0

    Returns QuadTree

Properties

bounds

bounds: Rect

capacity

capacity: number

children

children: QuadTree[]

maxLevels

maxLevels: number

objects

objects: any[]

Methods

clear

  • clear(): void
  • Returns void

insert

  • insert(object: any): void
  • Parameters

    • object: any

    Returns void

leaf

  • leaf(): boolean
  • Returns boolean

query