R/add_movement_functions.R
add_orientation2target.RdReturns the same data frame with added cos(angle) and angle over time.
add_orientation2target(
ref_movement,
target_position,
relative_to_first = FALSE
)rev_movement with new columns target_diff (raw angle relative
to target) and target_ratio (cosine of angle)