THE AUDITORY MODELING TOOLBOX

Applies to version: 1.4.0

View the code

Go to function

MCLACHLAN2021_ROTATEDIRS - Rotate a set of coordinates on a sphere to a new set of coordinates

Usage:

[dirs_rot] = rotateDirs(dirs,theta,type);

Input parameters:

dirs original directions in cartesian coordinates [x,y,z;...]
theta rotation amount (in degrees)
type type of rotation, options are 'yaw','pitch','roll'

Output parameters:

dirs_rot rotated directions in cartesian coordinates [x,y,z;...]