View source: R/runout_geometry.R
rotxy | R Documentation |
Rotate bounding box
rotxy(pts, angle)
pts |
A matrix with x and y coordinates of points |
angle |
Angle to rotate |
A list including the bounding box coordinates
pts=cbind(runif(60),runif(60))
bb=minbb(pts)
plot(bb$box,type="l")
points(pts)
pts2=rotxy(pts,pi/1.6)
bb2=minbb(pts2)
plot(bb2$box,type="l")
points(pts2)
rotxy(pts, 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.