Calculate coordinates at specific angle and distance.
A function calculating the coordinates of the point that is at
a specific radian angle in a specific distance from a source point.
Internally called by smoothArc
.
anglePoint(A, angl, len)
A |
Vector of length two with the coordinates of the source point. |
angl |
Radian angle indicating into which direction the new point is to be calculated. |
len |
The distance at which the new point is situated from the source point. |
A vector of length two with the coordinates of the new point.
Another pretty superfluous helper function...
Lutz P Breitling <l.breitling@posteo.de>
round(anglePoint(c(0,0), 0, 0.5), 2); round(anglePoint(c(0,0), pi/2, 0.5), 2); round(anglePoint(c(0,0), pi, 0.5), 2); round(anglePoint(c(0,0), 1.5*pi, 0.5), 2);
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.