PeanoCurve

PeanoCurve[n]

gives the line segments representing the n^(th)-step Peano curve.

Details and Options

  • PeanoCurve is also known as Peano space-filling curve.
  • PeanoCurve returns a Line primitive corresponding to a path that starts at {0,0}, then joins all integer points in the 3n-1 by 3n-1 square, and ends at {3n-1,3n-1}.  »
  • PeanoCurve takes a DataRange option that can be used to specify the range the coordinates should be assumed to occupy.

Examples

open allclose all

Basic Examples  (2)

A 2D Peano curve:

In[1]:=
Click for copyable input
Out[1]=

Lengths of the approximations to the Peano curve:

In[2]:=
Click for copyable input
Out[2]=

The formula:

In[3]:=
Click for copyable input
Out[3]=

Visualize the Peano curve in 2D with splines:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Options  (1)

Applications  (4)

Properties & Relations  (3)

Possible Issues  (2)

Neat Examples  (1)

See Also

HilbertCurve  SierpinskiCurve  KochCurve

Introduced in 2017
(11.1)