TrajRotate {trajr} | R Documentation |
Rotate a trajectory
Description
Rotates a trajectory by angle
(when relative
is FALSE
),
or so that angle(finish - start) == angle
(when relative
is
TRUE
).
Usage
TrajRotate(trj, angle = 0, origin = c(0, 0), relative = TRUE)
Arguments
trj |
The trajectory to be rotated. |
angle |
The angle of rotation in radians. Either the first and last
points in the rotated trajectory (when |
origin |
Trajectory is rotated about this point. |
relative |
If TRUE, |
Value
A new trajectory which is a rotated version of the input trajectory.
[Package trajr version 1.5.1 Index]