Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "tree"

Index

Functions

Const cartesianToTree

  • cartesianToTree(v: number[]): number[]
  • Takes a vector of positive integer coordinates and returns vector of nD quad tree coordinates.

    Parameters

    • v: number[]

    Returns number[]

Const mortonToTree

  • mortonToTree(m: number, dim: number): number[]
  • Parameters

    • m: number
    • dim: number

    Returns number[]

Const treeToCartesian

  • treeToCartesian(t: number[], dim: number): number[]
  • Inverse operation of cartesianToTree. Takes vector of nD quad tree coordinates and converts them back to cartesian.

    Parameters

    • t: number[]

      tree coords

    • dim: number

      dimensionality

    Returns number[]

Const treeToMorton

  • treeToMorton(t: number[], dim: number): number
  • Parameters

    • t: number[]
    • dim: number

    Returns number

Generated using TypeDoc