minbb: Minimum area bounding rectangles

View source: R/runout_geometry.R

minbbR Documentation

Minimum area bounding rectangles

Description

Computes a minimum area bounding rectangle for a set of points

Usage

minbb(pts)

Arguments

pts

A matrix with x and y coordinates of points

Value

A list including the bounding box coordinates

Examples

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 July 17, 2025, 3:06 a.m.