{-# LANGUAGE RankNTypes #-} -- | -- Module: Data.Algorithm.Hilbert -- Description: Calculate points on an arbitrary Hilbert curve -- Copyright: © 2013-2015 CJ East -- License: BSD3 -- Maintainer: CJ East -- Author: CJ East -- Stability: experimental -- Portability: Portable -- -- -- Conversion to-and-from points in a Hilbert space, based on the paper: -- -- Hamilton, C. /Compact Hilbert Indices - Technical Report -- CS-2006-07/ -- -- At the time of writing, the paper can be found at: -- -- module Data.Algorithm.Hilbert ( -- * Hilbert Curve Functions pointToIndex , indexToPoint -- * Gray Code Functions , grayCode , grayCodeInverse ) where import Data.Algorithm.Hilbert.Functions (pointToIndex, indexToPoint, grayCode, grayCodeInverse)