angle_from_positions.Rd
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) |