Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new ZCurve3(bits: Range1_32, order?: ArrayLike<0 | 1 | 2>): ZCurve3

Properties

bits

bits: number

dim

dim: 3

masks

masks: bigint[]

order

order: ArrayLike<number>

wipeMasks

wipeMasks: bigint[]

Methods

bigMin

  • bigMin(zcurr: bigint, zmin: bigint, zmax: bigint): bigint

decode

  • decode(z: bigint, out?: NumericArray): NumericArray

encode

  • encode(p: ArrayLike<number>): bigint

Protected initMasks

  • initMasks(): void

Protected loadBits

  • loadBits(mask: number, bitPos: number, z: bigint): bigint

merge

  • merge(zparts: bigint[]): bigint

pointInBox

  • pointInBox(p: ArrayLike<number>, rmin: ArrayLike<number>, rmax: ArrayLike<number>): boolean

range

  • range(rmin: ArrayLike<number>, rmax: ArrayLike<number>): Generator<bigint, void, unknown>

split

  • split(z: bigint, out?: bigint[]): bigint[]
  • Decomposes given Z index into individual bit patterns, one per dimension.

    remarks

    Parameters

    • z: bigint

      -

    • out: bigint[] = ...

      -

    Returns bigint[]

Static decodeComponent

  • decodeComponent(z: bigint, bits: number, dims: number, offset: number): number
  • Decodes a single nD component from given Z index.

    Parameters

    • z: bigint

      Z index

    • bits: number

      bits per component

    • dims: number

      number of dimensions

    • offset: number

      bit offset (for curr dimension)

    Returns number

Static encodeComponent

  • encodeComponent(x: number, bits: number, dims: number, offset: number, out?: bigint): bigint
  • Encodes a single nD point component as partial Z index.

    Parameters

    • x: number

      component value

    • bits: number

      bits per component

    • dims: number

      number of dimensions

    • offset: number

      bit offset (for curr dimension)

    • out: bigint = ...

      existing partial Z result

    Returns bigint

Generated using TypeDoc