View source: R/runout_geometry.R
minbb | R Documentation |
Computes a minimum area bounding rectangle for a set of points
minbb(pts)
pts |
A matrix with x and y coordinates of points |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.