rotater {arrowheadr}R Documentation

Rotate a 2-column matrix

Description

Rotate a 2-column matrix

Usage

rotater(x, theta, center = c(0, 0), degrees = FALSE)

Arguments

x

a 2-column matrix

theta

angle

center

point of rotation

degrees

if TRUE, theta is in degrees instead of radians

Value

a rotated 2-column matrix

Examples

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

[Package arrowheadr version 1.0.1 Index]