powered by
CreatePolygon creates a matrix to represent the polygon that connects several points
CreatePolygon
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
# NOT RUN { P1 <- c(0,0) P2 <- c(1,1) P3 <- c(2,0) Poly <- CreatePolygon(P1, P2, P3) # }
Run the code above in your browser using DataLab