THE AUDITORY MODELING TOOLBOX

Applies to version: 1.0.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;...]