Hilbert_Curve_-_6.webm(WebM audio/video file, VP8, length 51 s, 360 × 360 pixels, 111 kbps overall, file size: 694 KB)


Wikimedia Commons Logo This free media file is from Wikimedia Commons. Its description page is included below.

Summary

Description
English: Hilbert Curve at its sixth iteration
Date
Source Own work
Author CalmWords

VectorRotater[{x_, y_}, \[Theta]_, {x0_,

  y0_}] := ({{Cos[\[Theta]], -Sin[\[Theta]]}, {Sin[\[Theta]], 
      Cos[\[Theta]]}}.Transpose[{{x, y} - {x0, y0}}] + {x0, y0}) // 
 Flatten

VectorScaler[{x_, y_}, r_, {x0_, y0_}] :=

 r*({x - x0, y - y0}) + {x0, y0};

HilbertCurve[n_] := (

 HilbertCurve[n] =
  If[n == 1,
   {{1/4, 1/4}, {1/4, 3/4}, {3/4, 3/4}, {3/4, 1/4}},
   prev = HilbertCurve[n - 1];
   scaledPrev = VectorScaler[#, 1/2, {1/2, 1/2}] & /@ prev;
   scaledPrevRot1 = 
    Reverse[VectorRotater[#, \[Pi]/2, {1/2, 1/2}] & /@ scaledPrev];
   scaledPrevRot2 = 
    Reverse[VectorRotater[#, -\[Pi]/2, {1/2, 1/2}] & /@ scaledPrev];
   Join[
    {-1/4, -1/4} + # & /@ scaledPrevRot2,
    {-1/4, 1/4} + # & /@ scaledPrev,
    {1/4, 1/4} + # & /@ scaledPrev,
    {1/4, -1/4} + # & /@ scaledPrevRot1]
   ]
 )

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

23 July 2013

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current02:06, 24 July 201351 s, 360 × 360 (694 KB)CalmWordsUser created page with UploadWizard

There are no pages that use this file.

Global file usage

The following other wikis use this file: