|
NAMEhilbert_i2c, hilbert_c2i - Compute points on a Hilbert curve.SYNOPSISvoid hilbert_i2c( dim, bits, idx, coords )int dim, bits; long int idx; int coords[]; void hilbert_c2i( dim, bits, coords, idx )
DESCRIPTIONThese procedures map the real line onto a Hilbert curve and vice versa. (A Hilbert curve is a space filling curve similar to the Peano curve, except it is not closed.) The procedure hilbert_i2c returns the coordinates of a point on the Hilbert curve, given an index value representing its sequential position on the curve. The procedure hilbert_c2i reverses the process. The arguments are:
REFERENCEA. R. Butz, "Alternative algorithm for Hilbert's space-filling curve," IEEE Trans. Comput., vol C-20, pp. 424-426, Apr. 1971.AUTHORSpencer W. Thomas
Visit the GSP FreeBSD Man Page Interface. |