spolygon: Symbolic Polygon

Description Usage Arguments Value Examples

View source: R/spolygon.R

Description

The function obtains a simple symbolic polygon from center and radius representation.

Usage

1
spolygon(center, radius, vertices)

Arguments

center

a integer that represents the barycenter of polygon.

radius

a integer that represents the radius of polygon.

vertices

represents the number of vertices for the polygon.

Value

matrix that represents the polygon.

Examples

1
spolygon(2.5, 3, 5) #pentagon

psda documentation built on July 1, 2020, 6:10 p.m.