minbb: Minimum area bounding rectangles

Description Usage Arguments Value Examples

View source: R/runout_geometry.R

Description

Computes a minimum area bounding rectangle for a set of points

Usage

1
minbb(pts)

Arguments

pts

A matrix with x and y coordinates of points

Value

A list including the bounding box coordinates

Examples

1
2
3
4
5
6
7
8
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)

jngtz/runout.opt documentation built on Sept. 8, 2021, 2:15 p.m.