Learn R Programming

trajr (version 1.0.0)

TrajRotate: Rotate a trajectory

Description

Rotates a trajectory so that angle(finish - start) == angle

Usage

TrajRotate(trj, angle = 0)

Arguments

trj

The trajectory to be rotated.

angle

The angle between the first and last points in the rotated trajectory.

Value

A new trajectory which is a rotated version of the input trajectory.