TrajRotate | R Documentation |
Rotates a trajectory by angle
(when relative
is FALSE
),
or so that angle(finish - start) == angle
(when relative
is
TRUE
).
TrajRotate(trj, angle = 0, origin = c(0, 0), relative = TRUE)
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, |
A new trajectory which is a rotated version of the input trajectory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.