Koch plots the first iterations of Koch curve, a well-known fractal
Usage
Koch(P1, P2, it)
Arguments
P1
Vector containing the xy-coordinates of point 1. This point is the left extreme of the segment that corresponds to the first iteration (it = 1)
P2
Vector containing the xy-coordinates of point 2. This point is the right extreme of the segment that corresponds to the first iteration (it = 1)
it
Number of iterations to be performed for the construction of Koch curve. It is not recommended to choose a number higher than 7 in order to avoid an excess of computation
Value
None. It produces the plot of the first n iterations of Koch curve in the current coordinate plane