R/maths_functions.R
rot2centralangle.Rd
For a given direction vector, computes the central angle between the rotated versions of the vector.
rot2centralangle(R1, R2, e)
First rotation matrix
Second rotation matrix
Base vector (e.g. c(0,0,1) for forward gaze), magnitude is ignored
Angle in degrees
This is different from the distance between the rotations, because rotations around the direction vector are ignored here. This is useful for computing visual scan speed where rotation around the eye axis is irrelevant.