CreatePolygon {LearnGeom} | R Documentation |
CreatePolygon
creates a matrix to represent the polygon that connects several points
CreatePolygon(...)
... |
An undetermined number of points introduced by the user in the form of vectors |
Returns a matrix which contains the points of the polygon. Each row represents one of the points
P1 <- c(0,0)
P2 <- c(1,1)
P3 <- c(2,0)
Poly <- CreatePolygon(P1, P2, P3)