R2ngon {RIFS}R Documentation

Regular polygonal protofractal set in R^2

Description

R2ngon() function generates a regular polygonal protofractal set in R^2.

Usage

R2ngon(n1=3, n2=1, r=1, o=c(0,0), cycle=FALSE)

Arguments

n1

a number of vertices of a regular polygon.

n2

a number of partition points for the edges of a regular polygon.

r

a radius of the circumscribed circle.

o

a center of the circumscribed circle.

cycle

logical; if cycle=FALSE, first & last points are not equal.

Details

A regular polygon is a convex polygon in which all edges and all angles are equal.

A protofractal set Z is a discrete or continuous set, which in the iterative process generates a sample X of a fractal set.

Value

A matrix of points coordinates of a protofractal set in R^2.

Author(s)

Pavel V. Moskalev

See Also

preRIFS

Examples

plot(R2ngon(n1=90, cycle=TRUE), type="l", asp=1, col="gray",
     main="Regular {3,4,5,7,11}-gonal sets in R^2")
for (n in c(3,4,5,7,11)) 
  lines(R2ngon(n1=n, cycle=TRUE), 
        type="b", pch=16, col=hsv(h=(n-2)/9,v=0.9))

[Package RIFS version 0.1.6 Index]