rotate | R Documentation |
Rotate a polygon or convex hull.
rotate(x, times = 1L)
x |
a |
times |
(integer, default = 1), number vertices to rotate through |
The default call to rotate
simply moves the first vertex to the last
row of the vertex matrix and moves all the other rows up one, i.e.,
x$vertices <- x$vertices[c(2:nrow(x$vertices), 1), ]
.
For times > 1L
, the above code line is evaluated times
times.
The vertices
and beta
elements of sccm_pg
objects are
updated. sccm_ch
objects have vertices
, beta
, and
index
updated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.