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.