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

wagnerjorge/psda documentation built on Jan. 30, 2021, 1:59 a.m.