View source: R/navr-angle-calculations.R
angle_from_positions | R Documentation |
Calculates angle from two 2d positions
angle_from_positions(pos_from, pos_to, zero_vec = c(0, 1))
pos_from |
numeric(2) vector of original position |
pos_to |
numeric(2) vector of position towards the target |
zero_vec |
defines which axis should correspond to 0 degrees. defaults to c(0,1) (Y axis) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.