Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SpatialHash

Hierarchy

  • SpatialHash

Index

Constructors

constructor

Properties

boundX

boundX: number

boundY

boundY: number

boundZ

boundZ: number

bucketArray

bucketArray: Int32Array

bucketCount

bucketCount: Uint16Array

bucketOffset

bucketOffset: Uint32Array

exp

exp: number = 3

grid

grid: Uint32Array

minX

minX: number

minY

minY: number

minZ

minZ: number

xArray

xArray: ArrayLike<number>

yArray

yArray: ArrayLike<number>

zArray

zArray: ArrayLike<number>

Methods

eachWithin

  • eachWithin(x: number, y: number, z: number, r: number, callback: (atomIndex: number, dSq: number) => void): void
  • Parameters

    • x: number
    • y: number
    • z: number
    • r: number
    • callback: (atomIndex: number, dSq: number) => void
        • (atomIndex: number, dSq: number): void
        • Parameters

          • atomIndex: number
          • dSq: number

          Returns void

    Returns void

within

  • within(x: number, y: number, z: number, r: number): number[]

Generated using TypeDoc