Packages

object Z2

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Z2
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final val MAX_BITS: Int(31)
  2. final val MAX_DIM: Int(2)
  3. final val MAX_MASK: Int(2147483647)
  4. def apply(x: Int, y: Int): Z2

    Bits of x and y will be encoded as ....y1x1y0x0

  5. def combine(z: Long): Int

    combine every other bit to form a value.

    combine every other bit to form a value. Maximum value is 31 bits.

  6. def load(target: Long, p: Long, bits: Int, dim: Int): Long

    Loads either 1000...

    Loads either 1000... or 0111... into starting at given bit index of a given dimention

  7. def split(value: Long): Long

    insert 0 between every bit in value.

    insert 0 between every bit in value. Only first 31 bits can be considred.

  8. def unapply(z: Z2): Option[(Int, Int)]
  9. def zdivide(p: Z2, rmin: Z2, rmax: Z2): (Z2, Z2)
  10. def zranges(min: Z2, max: Z2): Seq[(BigInt, BigInt)]

    Recurse down the quad-tree and report all z-ranges which are contained in the rectangle defined by the min and max points