KochCurve
KochCurve[n]
gives the line segments representing the n-step Koch curve.
KochCurve[n,{θ1,θ2,…}]
takes a series of steps of unit length at successive relative angles θi.
KochCurve[n,{{r1,θ1},{r2,θ2},…}]
takes successive steps of lengths proportional to ri.
Details and Options
![](Files/KochCurve.en/details_1.png)
- KochCurve is also known as Koch snowflake.
- KochCurve[n] is generated from the unit interval by repeatedly removing the middle third of the subsequent cells and replacing it with a triangle. »
- KochCurve[n] is equivalent to KochCurve[n,{0,60 °,-120 °,60 °}].
- KochCurve takes a DataRange option that can be used to specify the range the coordinates should be assumed to occupy.
![](Files/KochCurve.en/Image_2.gif)
![](Files/KochCurve.en/Image_3.gif)
Examples
open allclose allBasic Examples (2)
Scope (7)
Options (1)
DataRange (1)
DataRange allows you to specify the range of mesh coordinates to generate:
Applications (4)
KochCurve is generated by repeatedly removing the middle third of the cells and replacing it with a triangle:
Properties & Relations (3)
KochCurve consists of lines:
AnglePath can be used to generate the first iteration of the Koch curve:
DataRange -> range is equivalent to using RescalingTransform[{...},range]:
Use RescalingTransform:
Text
Wolfram Research (2017), KochCurve, Wolfram Language function, https://reference.wolfram.com/language/ref/KochCurve.html.
CMS
Wolfram Language. 2017. "KochCurve." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KochCurve.html.
APA
Wolfram Language. (2017). KochCurve. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KochCurve.html