Documentation
¶
Overview ¶
Copyright 2019 jtejido
Package hilbert is created to support multidimensional encoding/decoding to/from a Space-Filling Curve http://en.wikipedia.org/wiki/Hilbert_curve
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNNotPositive = errors.New("Dimension must be greater than zero") ErrBNotPositive = errors.New("Number of bits must be greater than zero") )
Functions ¶
This section is empty.
Types ¶
type Hilbert ¶
type Hilbert struct {
// contains filtered or unexported fields
}
This algorithm is derived from work done by John Skilling and published in "Programming the Hilbert curve". (c) 2004 American Institute of Physics. https://doi.org/10.1063/1.1751381
func (*Hilbert) Decode ¶
Converts an index (distance along the Hilbert Curve from 0) to a point of dimensions defined
Click to show internal directories.
Click to hide internal directories.