Learn R Programming

arrowheadr (version 1.0.2)

rotater: Rotate a 2-column matrix

Description

Rotate a 2-column matrix

Usage

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

Value

a rotated 2-column matrix

Arguments

x

a 2-column matrix

theta

angle

center

point of rotation

degrees

if TRUE, theta is in degrees instead of radians

Examples

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

Run the code above in your browser using DataLab