rotateCoordinates: Rotate 2D trajectory

View source: R/reachProcessing.R

rotateCoordinatesR Documentation

Rotate 2D trajectory

Description

Rotate a trajectory of X,Y coordinates.

Usage

rotateCoordinates(df, angle, origin = c(0, 0))

Arguments

df

A dataframe or matrix with two columns: X and Y coordinates.

angle

An angle in degrees to rotate the trajectory by.

origin

A vector with the coordinates to rotate around. Default (0,0)

Details

Not yet.

Value

Data frame with the rotated trajectory coordinates.


thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.