rotateCoordinates: Rotate 2D trajectory

View source: R/reaches.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.

Examples

#

thartbm/handlocs documentation built on June 1, 2025, 9:10 p.m.