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