object Z2
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Z2
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- final val MAX_BITS: Int(31)
- final val MAX_DIM: Int(2)
- final val MAX_MASK: Int(2147483647)
-
def
apply(x: Int, y: Int): Z2
Bits of x and y will be encoded as ....y1x1y0x0
-
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.
-
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
-
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.
- def unapply(z: Z2): Option[(Int, Int)]
- def zdivide(p: Z2, rmin: Z2, rmax: Z2): (Z2, Z2)
-
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