R/add_movement_functions.R
add_angular_diff.RdTakes a movement or eye tracker data frame, derives rotation matrices from orientation data, applies them to a reference direction vector, and calculates the row-by-row angular difference for the vector rotation.
add_angular_diff(df, direction = c(0, 0, 1))Input data frame with column angular_diff added.