Interface customRange

impliment customRange to support custom range query

  • make sure your customRange object has correct intersects and contains function
  • note:
  • the boundary of customRange is the boundary of QuadTree
  • the point of customRange is the point of QuadTree

Example

// customRange use circle as example
circleRange = {
intersects: (boundary: MBR) => {},
contains: (point: [number,number]) => {}
}

See

Circle class in Geometry directory

Hierarchy

  • customRange

Properties

Properties

contains: ((point) => boolean)

Type declaration

    • (point): boolean
    • Parameters

      • point: [number, number]

      Returns boolean

intersects: ((boundary) => boolean)

Type declaration

    • (boundary): boolean
    • Parameters

      Returns boolean

Generated using TypeDoc