HilbertCurve
HilbertCurve[n]
gives the line segments representing the n-step Hilbert curve.
HilbertCurve[n,d]
gives the n-step Hilbert curve in dimension d.
Details and Options
- HilbertCurve is also known as Hilbert space-filling curve.
- HilbertCurve[n] returns a Line primitive corresponding to a path that starts at {0,0}, then joins all integer points in the 2n-1 by 2n-1 square, and ends at {2n-1,0}. »
- HilbertCurve takes a DataRange option that can be used to specify the range the coordinates should be assumed to occupy.
Examples
open allclose allBasic Examples (2)
Scope (8)
Options (1)
DataRange (1)
DataRange allows you to specify the range of mesh coordinates to generate:
Applications (4)
HilbertCurve is constructed recursively by transforming cups into four cups linked together by lines:
Visualize the Hilbert curve in 2D:
Properties & Relations (3)
HilbertCurve consists of lines:
Find the perimeter of the 2D Hilbert curve:
DataRangerange is equivalent to using RescalingTransform[{…},range]:
Use RescalingTransform:
Possible Issues (2)
By default, the coordinates of the Hilbert curve are not in the unit square:
Using DataRange to generate the Hilbert curve in the unit square:
HilbertCurve can be too large to generate:
Text
Wolfram Research (2017), HilbertCurve, Wolfram Language function, https://reference.wolfram.com/language/ref/HilbertCurve.html.
CMS
Wolfram Language. 2017. "HilbertCurve." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/HilbertCurve.html.
APA
Wolfram Language. (2017). HilbertCurve. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HilbertCurve.html