Free Access Week - Data Engineering + BI
Data engineering and BI courses are free!
Free Access Week - Jun 2-8

brainGraph (version 2.2.0)

rotation: Apply a rotation matrix to a set of points

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

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