Learn R Programming

lava (version 1.8.0)

rotate2: Performs a rotation in the plane

Description

Performs a rotation in the plane

Usage

rotate2(x, theta = pi)

Value

Returns a matrix of the same dimension as x

Arguments

x

Matrix to be rotated (2 times n)

theta

Rotation in radians

Author

Klaus K. Holst

Examples

Run this code
rotate2(cbind(c(1,2),c(2,1)))

Run the code above in your browser using DataLab