rotation: Apply a rotation matrix to a set of points

Description Usage Arguments Value Author(s)

Description

This function takes a set of points and applies a rotation matrix (e.g. will rotate points 90 deg. if given "pi/2" as input)

Usage

1
rotation(x, theta)

Arguments

x

A matrix with 2 columns of the points to rotate

theta

The angle to apply

Value

A matrix with 2 columns of the points' new locations

Author(s)

Christopher G. Watson, cgwatson@bu.edu



Search within the brainGraph package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.