anglePoint | R Documentation |
function to find new point given a reference point, an angle and a distance.
anglePoint(d, theta, ref = c(0, 0))
d |
numeric. distance traveled |
theta |
numeric. angle in degrees to move in. |
ref |
numeric. Reference point to start at. length must be 2. Default is c(0, 0) |
shift point by angle and distance.
numeric. point
anglePoint(d = 1, theta = 0, ref = c(0,0))
anglePoint(d = 2, theta = 90, ref = c(1,0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.