rotate2dmatrix: Rotate a 2-column matrix

View source: R/main.R

rotate2dmatrixR Documentation

Rotate a 2-column matrix

Description

Rotate a 2-column matrix

Usage

rotate2dmatrix(x, theta, degrees = FALSE, origin = c(0, 0))

Arguments

x

a 2-column matrix

theta

angle

degrees

if TRUE, theta is in degrees instead of radians

origin

point of rotation

Value

a rotated 2-column matrix

Examples

x <- matrix(seq(10), ncol = 2)
rotate2dmatrix(x, pi)

wjschne/WJSmisc documentation built on June 29, 2023, 8:04 a.m.