PolygonAngles {LearnGeom} | R Documentation |
Computes each of the existing angles in a given polygon
Description
PolygonAngles
computes each of the existing angles in a given polygon
Usage
PolygonAngles(Poly)
Arguments
Poly |
Polygon object, previously created with function |
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
P1 <- c(0,0)
P2 <- c(1,1)
P3 <- c(2,0)
Poly <- CreatePolygon(P1, P2, P3)
angles <- PolygonAngles(Poly)
[Package LearnGeom version 1.5 Index]