rotxy: Rotate bounding box

View source: R/runout_geometry.R

rotxyR Documentation

Rotate bounding box

Description

Rotate bounding box

Usage

rotxy(pts, angle)

Arguments

pts

A matrix with x and y coordinates of points

angle

Angle to rotate

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)
rotxy(pts, 30)

jngtz/runout.opt documentation built on July 17, 2025, 3:06 a.m.