R/add_movement_functions.R
add_rot.RdTakes a movement or eye tracker data frame, and adds rotation matrices from orientation data. For gaze data, rotation is computed wrt a reference vector, usually forward gaze.
add_rot(df, direction = c(0, 0, 1))Same df with rotation matrices added