-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | 2 and 3 dimensional hash using Morton numbers. -- -- This library compute the Morton numbers in 2d and 3d. It transforms -- integers x, y to a single integer z. The hash z has the property : if -- (x, y) and (x2, y2) are close then their Morton numbers are close. @package DimensionalHash @version 0.0 module Data.DimensionalHash class Bits a => MortonNumber a toMortonNumber3d :: MortonNumber a => a -> a -> a -> a toMortonNumber2d :: MortonNumber a => a -> a -> a instance MortonNumber Integer