Description Usage Arguments Value Examples
View source: R/RemovePointPoly.R
RemovePointPoly
creates a matrix to represent the polygon that connects several points
1 | RemovePointPoly(Poly, position)
|
Poly |
Polygon object, previously created with function |
position |
Integer indicating the position of the point in the original polygon that is being removed. It is convenient to visualize the polygon with |
Returns a matrix which contains the points of the polygon. Each row represents one of the points
1 2 3 4 5 6 7 8 9 10 11 | x_min <- -5
x_max <- 5
y_min <- -5
y_max <- 5
CoordinatePlane(x_min, x_max, y_min, y_max)
n <- 5
C <- c(0,0)
l <- 2
Penta <- CreateRegularPolygon(n, C, l)
Penta <- RemovePointPoly(Penta, 4)
Draw(Penta, "blue", label = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.