PolygonAngles: Computes each of the existing angles in a given polygon

Description Usage Arguments Value Examples

View source: R/PolygonAngles.R

Description

PolygonAngles computes each of the existing angles in a given polygon

Usage

1

Arguments

Poly

Polygon object, previously created with function CreatePolygon

Value

Returns a vector containing the angles for each of the points of a polygon. The resulting vector follows the order of the points in the defined polygon

Examples

1
2
3
4
5
P1 <- c(0,0)
P2 <- c(1,1)
P3 <- c(2,0) 
Poly <- CreatePolygon(P1, P2, P3)
angles <- PolygonAngles(Poly)

LearnGeom documentation built on July 14, 2020, 5:06 p.m.