polycirc: Computes the polygon coordinates of a circle

polycircR Documentation

Computes the polygon coordinates of a circle

Description

Computes the polygon coordinates of a circle

Usage

polycirc(radius, pts = c(0, 0), nbr = 50)

Arguments

radius

the length of the radius.

pts

the coordinates of the center.

nbr

the number of segments required to draw the perimeter

Details

The matrix of coordinates can then be used with the function polygon

Value

A matrix of coordinates.

See Also

polygon,findR

Examples

plot(1:10,1:10,type="n",asp=1)
polygon(polycirc(5),col="blue")
polygon(polycirc(2,c(5,5)), col="red")


pgirmess documentation built on April 8, 2023, 1:12 a.m.

Related to polycirc in pgirmess...